[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] LVM2/libdm libdm-config.c



CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac sourceware org	2011-09-25 19:42:45

Modified files:
	libdm          : libdm-config.c 

Log message:
	Add backtrace when allocation fails for _type

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-config.c.diff?cvsroot=lvm2&r1=1.10&r2=1.11

--- LVM2/libdm/libdm-config.c	2011/09/25 19:41:27	1.10
+++ LVM2/libdm/libdm-config.c	2011/09/25 19:42:45	1.11
@@ -605,7 +605,8 @@
 		}
 
 	} else
-		h = _type(p);
+		if (!(h = _type(p)))
+			return_NULL;
 
 	return h;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]