mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 22:52:09 +01:00
initialize option_name before using it.
Fri May 27 17:18:00 2005 Manish Singh <yosh@gimp.org> * glib/goption.c (parse_short_option): initialize option_name before using it.
This commit is contained in:
parent
4c4f106344
commit
ba5a4d9db6
@ -1,3 +1,8 @@
|
|||||||
|
Fri May 27 17:18:00 2005 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/goption.c (parse_short_option): initialize option_name
|
||||||
|
before using it.
|
||||||
|
|
||||||
2005-05-27 Matthias Clasen <mclasen@redhat.com>
|
2005-05-27 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/goption.c (parse_short_option, parse_long_option):
|
* glib/goption.c (parse_short_option, parse_long_option):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri May 27 17:18:00 2005 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/goption.c (parse_short_option): initialize option_name
|
||||||
|
before using it.
|
||||||
|
|
||||||
2005-05-27 Matthias Clasen <mclasen@redhat.com>
|
2005-05-27 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/goption.c (parse_short_option, parse_long_option):
|
* glib/goption.c (parse_short_option, parse_long_option):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri May 27 17:18:00 2005 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/goption.c (parse_short_option): initialize option_name
|
||||||
|
before using it.
|
||||||
|
|
||||||
2005-05-27 Matthias Clasen <mclasen@redhat.com>
|
2005-05-27 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/goption.c (parse_short_option, parse_long_option):
|
* glib/goption.c (parse_short_option, parse_long_option):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri May 27 17:18:00 2005 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* glib/goption.c (parse_short_option): initialize option_name
|
||||||
|
before using it.
|
||||||
|
|
||||||
2005-05-27 Matthias Clasen <mclasen@redhat.com>
|
2005-05-27 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/goption.c (parse_short_option, parse_long_option):
|
* glib/goption.c (parse_short_option, parse_long_option):
|
||||||
|
@ -900,6 +900,8 @@ parse_short_option (GOptionContext *context,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
option_name = g_strdup_printf ("-%c", group->entries[j].short_name);
|
||||||
|
|
||||||
if (index < *argc - 1)
|
if (index < *argc - 1)
|
||||||
{
|
{
|
||||||
value = (*argv)[index + 1];
|
value = (*argv)[index + 1];
|
||||||
@ -915,8 +917,6 @@ parse_short_option (GOptionContext *context,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
option_name = g_strdup_printf ("-%c", group->entries[j].short_name);
|
|
||||||
|
|
||||||
if (!parse_arg (context, group, &group->entries[j], value, option_name, error))
|
if (!parse_arg (context, group, &group->entries[j], value, option_name, error))
|
||||||
{
|
{
|
||||||
g_free (option_name);
|
g_free (option_name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user