LVM2/lib/format_text tags.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: prajnoha at sourceware.org 2010-09-21 10:42:03
Modified files:
lib/format_text: tags.c
Log message:
"goto_bad" should be used in alloc_printed_tags function, not "goto bad".
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/tags.c.diff?cvsroot=lvm2&r1=1.8&r2=1.9
lib/format_text/tags.c +4 -4
@@ -38,21 +38,21 @@ }if (!emit_to_buffer (&buf, &size,"[" )) - goto bad; + goto_bad; dm_list_iterate_items(sl, tags) {if (!first) {if (!emit_to_buffer (&buf, &size,", " )) - goto bad; + goto_bad; }else first =0 ;if (!emit_to_buffer (&buf, &size,"\"%s\"" , sl->str)) - goto bad; + goto_bad; }if (!emit_to_buffer (&buf, &size,"]" )) - goto bad; + goto_bad;return buffer;