grim/guifications3

fixed a null pointer dereference

2010-12-22, Gary Kramlich
a54947b5b3d2
Parents 59b11e0f9116
Children 5c9fc134b59e
fixed a null pointer dereference
--- a/gflib/gflib/gf_core.c Mon Dec 20 01:12:27 2010 -0600
+++ b/gflib/gflib/gf_core.c Wed Dec 22 17:52:38 2010 -0600
@@ -110,8 +110,7 @@
/* do some magic to see if argv was passed in as null */
if(!argv)
appname = NULL;
-
- if(!argv[0])
+ else if(!argv[0])
appname = NULL;
/* initialize gettext */