summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 593828e)
raw | patch | inline | side by side (parent: 593828e)
author | Florian Forster <ff@octo.it> | |
Wed, 14 Jul 2010 15:56:36 +0000 (17:56 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 14 Jul 2010 15:56:36 +0000 (17:56 +0200) |
src/graph_def.c | patch | blob | history |
diff --git a/src/graph_def.c b/src/graph_def.c
index 9aba1ce133371e25d27f54248079d99d35d28d90..e7effec20d496a0a6705e1bab8b6132c5a8804bd 100644 (file)
--- a/src/graph_def.c
+++ b/src/graph_def.c
graph_def_t *ret;
if ((cfg == NULL) || (ident == NULL) || (ds_name == NULL))
+ {
+ fprintf (stderr, "def_create: An argument is NULL\n");
return (NULL);
+ }
selector = graph_get_selector (cfg);
if (selector == NULL)
+ {
+ fprintf (stderr, "def_create: graph_get_selector failed\n");
return (NULL);
+ }
ret = malloc (sizeof (*ret));
if (ret == NULL)
{
+ fprintf (stderr, "def_create: malloc failed\n");
ident_destroy (selector);
return (NULL);
}
ret->ds_name = strdup (ds_name);
if (ret->ds_name == NULL)
{
+ fprintf (stderr, "def_create: Unable to copy DS name\n");
ident_destroy (selector);
free (ret);
return (NULL);
IDENT_FLAG_REPLACE_ANY);
if (ret->select == NULL)
{
+ fprintf (stderr, "def_create: ident_copy_with_selector failed\n");
ident_destroy (selector);
free (ret->ds_name);
free (ret);