mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
Properly store changes for arrays. (#308528, Roger Leigh)
2005-06-22 Matthias Clasen <mclasen@redhat.com> * glib/goption.c (parse_arg): Properly store changes for arrays. (#308528, Roger Leigh)
This commit is contained in:
parent
0c2739405c
commit
f8411a5b97
@ -3,6 +3,8 @@
|
|||||||
* glib/goption.c (parse_short_option, parse_long_option):
|
* glib/goption.c (parse_short_option, parse_long_option):
|
||||||
Pass the option name also in the NO_ARG case. (#308602,
|
Pass the option name also in the NO_ARG case. (#308602,
|
||||||
Masatake YAMATO)
|
Masatake YAMATO)
|
||||||
|
(parse_arg): Properly store changes for arrays. (#308528,
|
||||||
|
Roger Leigh)
|
||||||
|
|
||||||
2005-06-22 Tor Lillqvist <tml@novell.com>
|
2005-06-22 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
* glib/goption.c (parse_short_option, parse_long_option):
|
* glib/goption.c (parse_short_option, parse_long_option):
|
||||||
Pass the option name also in the NO_ARG case. (#308602,
|
Pass the option name also in the NO_ARG case. (#308602,
|
||||||
Masatake YAMATO)
|
Masatake YAMATO)
|
||||||
|
(parse_arg): Properly store changes for arrays. (#308528,
|
||||||
|
Roger Leigh)
|
||||||
|
|
||||||
2005-06-22 Tor Lillqvist <tml@novell.com>
|
2005-06-22 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
* glib/goption.c (parse_short_option, parse_long_option):
|
* glib/goption.c (parse_short_option, parse_long_option):
|
||||||
Pass the option name also in the NO_ARG case. (#308602,
|
Pass the option name also in the NO_ARG case. (#308602,
|
||||||
Masatake YAMATO)
|
Masatake YAMATO)
|
||||||
|
(parse_arg): Properly store changes for arrays. (#308528,
|
||||||
|
Roger Leigh)
|
||||||
|
|
||||||
2005-06-22 Tor Lillqvist <tml@novell.com>
|
2005-06-22 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
* glib/goption.c (parse_short_option, parse_long_option):
|
* glib/goption.c (parse_short_option, parse_long_option):
|
||||||
Pass the option name also in the NO_ARG case. (#308602,
|
Pass the option name also in the NO_ARG case. (#308602,
|
||||||
Masatake YAMATO)
|
Masatake YAMATO)
|
||||||
|
(parse_arg): Properly store changes for arrays. (#308528,
|
||||||
|
Roger Leigh)
|
||||||
|
|
||||||
2005-06-22 Tor Lillqvist <tml@novell.com>
|
2005-06-22 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
@ -758,7 +758,7 @@ parse_arg (GOptionContext *context,
|
|||||||
|
|
||||||
if (change->allocated.array.len == 0)
|
if (change->allocated.array.len == 0)
|
||||||
{
|
{
|
||||||
change->prev.array = entry->arg_data;
|
change->prev.array = *(gchar ***)entry->arg_data;
|
||||||
change->allocated.array.data = g_new (gchar *, 2);
|
change->allocated.array.data = g_new (gchar *, 2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -816,7 +816,7 @@ parse_arg (GOptionContext *context,
|
|||||||
|
|
||||||
if (change->allocated.array.len == 0)
|
if (change->allocated.array.len == 0)
|
||||||
{
|
{
|
||||||
change->prev.array = entry->arg_data;
|
change->prev.array = *(gchar ***)entry->arg_data;
|
||||||
change->allocated.array.data = g_new (gchar *, 2);
|
change->allocated.array.data = g_new (gchar *, 2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user