]> sourceware.org Git - lvm2.git/commitdiff
Add backtrace when allocation fails for _type
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 25 Sep 2011 19:42:45 +0000 (19:42 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Sun, 25 Sep 2011 19:42:45 +0000 (19:42 +0000)
libdm/libdm-config.c

index 975fc96c86587bb9ae0de6221def9cc8e7f2214b..d819a7ff7ac96eb9c52f53c4fec0067e9f54c38c 100644 (file)
@@ -605,7 +605,8 @@ static struct dm_config_value *_value(struct parser *p)
                }
 
        } else
-               h = _type(p);
+               if (!(h = _type(p)))
+                       return_NULL;
 
        return h;
 }
This page took 0.035442 seconds and 5 git commands to generate.