From 60444f8bff6289f98c582d7b8d2481b77465f8ba Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 25 Sep 2011 19:42:45 +0000 Subject: [PATCH] Add backtrace when allocation fails for _type --- libdm/libdm-config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libdm/libdm-config.c b/libdm/libdm-config.c index 975fc96c8..d819a7ff7 100644 --- a/libdm/libdm-config.c +++ b/libdm/libdm-config.c @@ -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; }