From e82f01e3fbe9f4e1e67b51cbfb51e643f2a5ae3e Mon Sep 17 00:00:00 2001 From: William Robinet Date: Wed, 13 May 2015 16:11:06 +0200 Subject: [PATCH] "Each invocation of va_start() must be matched by a corresponding invocation of va_end()" --- common/lib/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/lib/debug.c b/common/lib/debug.c index e275f83..fe19530 100644 --- a/common/lib/debug.c +++ b/common/lib/debug.c @@ -59,6 +59,7 @@ int debug(int class,char *format,...) va_start(ap,format); vfprintf(stderr,format,ap); fprintf(stderr,"\n"); + va_end(ap); return(0); }