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

Qt: do not hard-code argv table size

parent 2657f3bc
......@@ -444,8 +444,8 @@ static void *Thread( void *obj )
intf_thread_t *p_intf = (intf_thread_t *)obj;
MainInterface *p_mi;
char dummy[] = "vlc"; /* for WM_CLASS */
char *argv[2] = { dummy, NULL, };
int argc = 1;
char *argv[] = { dummy, NULL, };
int argc = sizeof(argv) / sizeof(argv[0]) - 1;
Q_INIT_RESOURCE( vlc );
......
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