Commit b535e99b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_control_cancel: va_start iif va_end

parent 296bf6e2
...@@ -804,8 +804,6 @@ void vlc_control_cancel (int cmd, ...) ...@@ -804,8 +804,6 @@ void vlc_control_cancel (int cmd, ...)
#else #else
va_list ap; va_list ap;
va_start (ap, cmd);
vlc_cancel_t *nfo = vlc_threadvar_get (&cancel_key); vlc_cancel_t *nfo = vlc_threadvar_get (&cancel_key);
if (nfo == NULL) if (nfo == NULL)
{ {
...@@ -821,6 +819,7 @@ void vlc_control_cancel (int cmd, ...) ...@@ -821,6 +819,7 @@ void vlc_control_cancel (int cmd, ...)
#endif #endif
} }
va_start (ap, cmd);
switch (cmd) switch (cmd)
{ {
case VLC_SAVE_CANCEL: case VLC_SAVE_CANCEL:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment