This is the mail archive of the lvm2-cvs@sourceware.org mailing list for the LVM2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

LVM2/libdm libdm-common.c


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk@sourceware.org	2009-09-25 18:19:09

Modified files:
	libdm          : libdm-common.c 

Log message:
	ensure dm_strdup succeeds

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-common.c.diff?cvsroot=lvm2&r1=1.83&r2=1.84

--- LVM2/libdm/libdm-common.c	2009/09/25 18:13:17	1.83
+++ LVM2/libdm/libdm-common.c	2009/09/25 18:19:09	1.84
@@ -217,7 +217,9 @@
 			continue;
 
 		if (buf.st_rdev == st_rdev) {
-			new_name = dm_strdup(name);
+			if (!(new_name = dm_strdup(name)))
+				log_error("dm_task_set_name: strdup(%s) failed",
+					  name);
 			break;
 		}
 	}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]