Skip to contentSkip to conversation

cluster/gfs2/libgfs2 gfs2_log.c

Cluster-devel [email protected] 1 participant 1 message Oct 11, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2007-10-11 16:34:28

Modified files:

	gfs2/libgfs2   : gfs2_log.c 

Log message:

	Resolves: bz 240545 (addendum).

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/libgfs2/gfs2_log.c.diff?cvsroot=cluster&r1=1.4&r2=1.5

gfs2/libgfs2/gfs2_log.c +3 -4
@@ -165,10 +165,6 @@
 	int ret = 0;
 
 	*setonabort = 0;
-	va_start(args, format);
-
-	transform = _(format);
-
 	if(opts->yes)
 		return 1;
 	if(opts->no)
@@ -176,7 +172,10 @@
 
 	opts->query = TRUE;
 	while (1) {
+		va_start(args, format);
+		transform = _(format);
 		vprintf(transform, args);
+		va_end(args);
 
 		/* Make sure query is printed out */
 		fflush(NULL);