mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-21 22:59:16 +02:00
Only set the prgname if it hasn't been set before. (#334611, Chong Kai
2006-03-15 Matthias Clasen <mclasen@redhat.com> * glib/goption.c (g_option_context_parse): Only set the prgname if it hasn't been set before. (#334611, Chong Kai Xiong)
This commit is contained in:
parent
9e58246669
commit
79a5c739a4
@ -1,3 +1,8 @@
|
|||||||
|
2006-03-15 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c (g_option_context_parse): Only set the prgname
|
||||||
|
if it hasn't been set before. (#334611, Chong Kai Xiong)
|
||||||
|
|
||||||
2006-03-14 Matthias Clasen <mclasen@redhat.com>
|
2006-03-14 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gutils.c (g_parse_debug_string): Don't read past the
|
* glib/gutils.c (g_parse_debug_string): Don't read past the
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2006-03-15 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c (g_option_context_parse): Only set the prgname
|
||||||
|
if it hasn't been set before. (#334611, Chong Kai Xiong)
|
||||||
|
|
||||||
2006-03-14 Matthias Clasen <mclasen@redhat.com>
|
2006-03-14 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gutils.c (g_parse_debug_string): Don't read past the
|
* glib/gutils.c (g_parse_debug_string): Don't read past the
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2006-03-15 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/goption.c (g_option_context_parse): Only set the prgname
|
||||||
|
if it hasn't been set before. (#334611, Chong Kai Xiong)
|
||||||
|
|
||||||
2006-03-14 Matthias Clasen <mclasen@redhat.com>
|
2006-03-14 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gutils.c (g_parse_debug_string): Don't read past the
|
* glib/gutils.c (g_parse_debug_string): Don't read past the
|
||||||
|
@ -1232,6 +1232,8 @@ g_option_context_parse (GOptionContext *context,
|
|||||||
GList *list;
|
GList *list;
|
||||||
|
|
||||||
/* Set program name */
|
/* Set program name */
|
||||||
|
if (!g_get_prgname())
|
||||||
|
{
|
||||||
if (argc && argv && *argc)
|
if (argc && argv && *argc)
|
||||||
{
|
{
|
||||||
gchar *prgname;
|
gchar *prgname;
|
||||||
@ -1241,7 +1243,6 @@ g_option_context_parse (GOptionContext *context,
|
|||||||
g_free (prgname);
|
g_free (prgname);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
g_set_prgname ("<unknown>");
|
g_set_prgname ("<unknown>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user