diff options
author | Erik Troan <ewt@src.gnome.org> | 1998-07-30 14:53:29 +0000 |
---|---|---|
committer | Erik Troan <ewt@src.gnome.org> | 1998-07-30 14:53:29 +0000 |
commit | 9a3d691b6e5859104d28e32ba322a3df21d9a4be (patch) | |
tree | 571366d449636098705e8195baf5331a14c5e14c /support/popt.c | |
parent | c07ae55c2d6877060f269315d2561d67c036e6e3 (diff) | |
download | shared-mime-info-9a3d691b6e5859104d28e32ba322a3df21d9a4be.tar.gz |
don't strcmp() a NULL longName
svn path=/trunk/; revision=310
Diffstat (limited to 'support/popt.c')
-rw-r--r-- | support/popt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/popt.c b/support/popt.c index 4bfd26c0..886ac723 100644 --- a/support/popt.c +++ b/support/popt.c @@ -154,7 +154,7 @@ static int handleAlias(poptContext con, char * longName, char shortName, char * nextCharArg) { int i; - if (con->os->currAlias && con->os->currAlias->longName && + if (con->os->currAlias && con->os->currAlias->longName && longName && !strcmp(con->os->currAlias->longName, longName)) return 0; if (con->os->currAlias && shortName == con->os->currAlias->shortName) |