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:
Matthias Clasen 2005-06-22 17:09:03 +00:00 committed by Matthias Clasen
parent da1e7ffd77
commit 32e4ee5333
5 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-06-22 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (parse_arg): Properly store changes
for arrays. (#308528, Roger Leigh)
2005-06-21 Runa Bhattacharjee <runa@bengalinux.org>
* configure.in: Added "te" to ALL_LINGUAS.

View File

@ -1,3 +1,8 @@
2005-06-22 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (parse_arg): Properly store changes
for arrays. (#308528, Roger Leigh)
2005-06-21 Runa Bhattacharjee <runa@bengalinux.org>
* configure.in: Added "te" to ALL_LINGUAS.

View File

@ -1,3 +1,8 @@
2005-06-22 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (parse_arg): Properly store changes
for arrays. (#308528, Roger Leigh)
2005-06-21 Runa Bhattacharjee <runa@bengalinux.org>
* configure.in: Added "te" to ALL_LINGUAS.

View File

@ -1,3 +1,8 @@
2005-06-22 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (parse_arg): Properly store changes
for arrays. (#308528, Roger Leigh)
2005-06-21 Runa Bhattacharjee <runa@bengalinux.org>
* configure.in: Added "te" to ALL_LINGUAS.

View File

@ -732,7 +732,7 @@ parse_arg (GOptionContext *context,
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);
}
else
@ -790,7 +790,7 @@ parse_arg (GOptionContext *context,
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);
}
else