summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/imports.c2
1 files changed, 1 insertions, 1 deletions
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;
}