LVM2/lib/config config.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2010-11-23 15:08:58
Modified files:
lib/config : config.c
Log message:
Move va_end() so it is also used before error path return
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/config/config.c.diff?cvsroot=lvm2&r1=1.82&r2=1.83
lib/config/config.c +2 -1
@@ -381,11 +381,12 @@va_start (ap, fmt); n =vsnprintf (&buf[0 ],sizeof buf -1 , fmt, ap); +va_end (ap); +if (n <0 || n > (int )sizeof buf -1 ) {log_error ("vsnprintf failed for config line" );return 0 ; } -va_end (ap);if (!dm_pool_grow_object (outline->mem, &buf[0 ],strlen (buf))) {log_error ("dm_pool_grow_object failed for config line" );