X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=graph_list.c;fp=graph_list.c;h=80fab2888ac2a8600186f68203716f9d4d9388ae;hb=06d714ac1654f84e0330717951515f7ae8793077;hp=fc63620f7b5e9f5b36b78a3eb015f67e6736ff7f;hpb=765bbe76d57b127ca2e72e40af3e8123aeeb217c;p=collection4.git diff --git a/graph_list.c b/graph_list.c index fc63620..80fab28 100644 --- a/graph_list.c +++ b/graph_list.c @@ -183,6 +183,12 @@ static graph_instance_t *instance_create (graph_config_t *cfg, /* {{{ */ i->select = ident_copy_with_selector (cfg->select, file, IDENT_FLAG_REPLACE_ANY); + if (i->select == NULL) + { + DEBUG ("instance_create: ident_copy_with_selector returned NULL.\n"); + free (i); + return (NULL); + } i->files = NULL; i->files_num = 0;