Skip to contentSkip to conversation

: Complement va_start() with va_end().

PATCH New Richard Knutsson 1 participant 1 message Nov 26, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Complement va_start() with va_end().

Complement va_start() with va_end().

---
Compile-tested on i386 with allyesconfig and allmodconfig. BTW, the nested if()'s (lines above) may look better if unnested.

fs/reiserfs/prints.c +2 -0
index 5e7388b..740bb8c 100644
@@ -575,6 +575,8 @@ void print_block(struct buffer_head *bh, ...)	//int print_mode, int first, int l
 					printk
 					    ("Block %llu contains unformatted data\n",
 					     (unsigned long long)bh->b_blocknr);
+
+	va_end(args);
 }
 
 static char print_tb_buf[2048];