Commit 85606f60 authored by Kjell Ahlstedt's avatar Kjell Ahlstedt Committed by Matthias Clasen

goption: Don't include parsed option values in G_OPTION_REMAINING

After a call to g_option_context_set_ignore_unknown_options(context, TRUE),
the values of short options were included in the array returned by a
parent 1565a491
......@@ -2038,6 +2038,7 @@ g_option_context_parse (GOptionContext *context,
if (new_arg)
new_arg[arg_index] = '\0';
add_pending_null (context, &((*argv)[i]), new_arg);
i = new_i;
else if (parsed)
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