[lvm-devel] LVM2/lib/metadata lv_manip.c

zkabelac at sourceware.org zkabelac at sourceware.org
Thu Jan 14 10:09:43 UTC 2010


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac at sourceware.org	2010-01-14 10:09:42

Modified files:
	lib/metadata   : lv_manip.c 

Log message:
	Move initialization of the 'cmd' member of the struct alloc_handle
	before the first potentional return.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/lv_manip.c.diff?cvsroot=lvm2&r1=1.203&r2=1.204

--- LVM2/lib/metadata/lv_manip.c	2010/01/14 10:08:03	1.203
+++ LVM2/lib/metadata/lv_manip.c	2010/01/14 10:09:42	1.204
@@ -566,11 +566,11 @@
 		return NULL;
 	}
 
+	ah->cmd = cmd;
+
 	if (segtype_is_virtual(segtype))
 		return ah;
 
-	ah->cmd = cmd;
-
 	if (!(ah->mem = dm_pool_create("allocation", 1024))) {
 		log_error("allocation pool creation failed");
 		return NULL;




More information about the lvm-devel mailing list