Skip to contentSkip to conversation

device-mapper ./WHATS_NEW lib/libdm-deptree.c

PATCH [email protected] 1 participant 1 message Jun 5, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/dm
Module name: device-mapper
Changes by: [email protected] 2008-06-05 19:10:35

Modified files:
. : WHATS_NEW
lib : libdm-deptree.c

Log message:
Initialise params buffer to empty string in _emit_segment.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/WHATS_NEW.diff?cvsroot=dm&r1=1.232&r2=1.233
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/libdm-deptree.c.diff?cvsroot=dm&r1=1.37&r2=1.38

WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 1.02.26 - 
 =================================
+  Initialise params buffer to empty string in _emit_segment.
   Skip add_dev_node when ioctls disabled.
   Make dm_hash_iter safe against deletion.
   Accept a NULL pointer to dm_free silently.
lib/libdm-deptree.c +1 -1
@@ -1276,7 +1276,6 @@
 	switch(seg->type) {
 	case SEG_ERROR:
 	case SEG_ZERO:
-		params[0] = '\0';
 	case SEG_LINEAR:
 		break;
 	case SEG_MIRRORED:
@@ -1434,6 +1433,7 @@
 			return 0;
 		}
 
+		params[0] = '\0';
 		ret = _emit_segment_line(dmt, seg, seg_start, params, paramsize);
 		dm_free(params);