summaryrefslogtreecommitdiff
path: root/gdk/gdk.c
diff options
context:
space:
mode:
authorChristopher Blizzard <blizzard@redhat.com>2001-12-08 21:13:02 +0000
committerChristopher Blizzard <blizzard@src.gnome.org>2001-12-08 21:13:02 +0000
commit1d0e9b7f289cac390509778007c32d93f7a48e3e (patch)
tree86f7ad495a035082928cf2f0a6163ac0a038382c /gdk/gdk.c
parent6793f772fc57ecb587925e1e0c845a29503356c4 (diff)
downloadgdk-pixbuf-1d0e9b7f289cac390509778007c32d93f7a48e3e.tar.gz
Fallback to setting the prgname to "<unknown>" if someone doesn't pass in
Sat Dec 8 16:12:10 2001 Christopher Blizzard <blizzard@redhat.com> * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to "<unknown>" if someone doesn't pass in a valid argc. (Patch from Fabrice Bellet <fabrice@gnu.org>, #54127).
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r--gdk/gdk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 86c459953..319c619cd 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -299,7 +299,10 @@ gdk_init_check (int *argc,
g_set_prgname ((*argv)[0]);
}
}
-
+ else
+ {
+ g_set_prgname ("<unknown>");
+ }
#ifdef G_ENABLE_DEBUG
{