From: Brian Paul Date: Thu, 15 Dec 2005 15:23:54 +0000 (+0000) Subject: move va_end() call (Evgeny Kotsuba) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=924fb5e916ae107df52181643927305ec4435255;p=mesa.git move va_end() call (Evgeny Kotsuba) --- diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 97d7d57bd28..bf1556fe6f8 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -889,12 +889,12 @@ _mesa_sprintf( char *str, const char *fmt, ... ) int r; va_list args; va_start( args, fmt ); - va_end( args ); #if defined(XFree86LOADER) && defined(IN_MODULE) r = xf86vsprintf( str, fmt, args ); #else r = vsprintf( str, fmt, args ); #endif + va_end( args ); return r; }