summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-12-15 15:23:54 +0000
committerBrian Paul <[email protected]>2005-12-15 15:23:54 +0000
commit924fb5e916ae107df52181643927305ec4435255 (patch)
treef3e3df3065e1545a66bb8e9d9623f1ba64257d6e /src/mesa/main/imports.c
parent841c9018b140f3271dd1f6e29d9ca4f391823a22 (diff)
move va_end() call (Evgeny Kotsuba)
Diffstat (limited to 'src/mesa/main/imports.c')
-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;
}