[vlc-commits] Win32: useless variable

Rémi Denis-Courmont git at videolan.org
Wed Apr 18 21:12:52 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 18 22:12:37 2012 +0300| [93e26234b2cc5c2ef33978b96007034cf17c1808] | committer: Rémi Denis-Courmont

Win32: useless variable

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=93e26234b2cc5c2ef33978b96007034cf17c1808
---

 src/misc/messages.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/misc/messages.c b/src/misc/messages.c
index 66bd62e..317319a 100644
--- a/src/misc/messages.c
+++ b/src/misc/messages.c
@@ -235,10 +235,9 @@ void vlc_vaLog (vlc_object_t *obj, int type, const char *module,
     va_end (ap);
 
 #ifdef WIN32
-    va_list dol;
-    va_copy (dol, args);
-    Win32DebugOutputMsg (&priv->i_verbose, type, &msg, format, dol);
-    va_end (dol);
+    va_copy (ap, args);
+    Win32DebugOutputMsg (&priv->i_verbose, type, &msg, format, ap);
+    va_end (ap);
 #endif
 
     vlc_rwlock_rdlock (&msg_lock);



More information about the vlc-commits mailing list