[glib] goption: Don't include parsed option values in G_OPTION_REMAINING
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] goption: Don't include parsed option values in G_OPTION_REMAINING
- Date: Tue, 6 May 2014 00:33:28 +0000 (UTC)
commit 85606f609363092e8f47db57b05762a0728ec80e
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Mon May 5 14:40:31 2014 +0200
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
G_OPTION_REMAINING option.
https://bugzilla.gnome.org/show_bug.cgi?id=729563
glib/goption.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/goption.c b/glib/goption.c
index a11971f..2e45292 100644
--- a/glib/goption.c
+++ b/glib/goption.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]