diff options
author | Brian Cameron <brian.cameron@sun.com> | 2007-04-02 05:38:23 +0000 |
---|---|---|
committer | Brian Cameron <bcameron@src.gnome.org> | 2007-04-02 05:38:23 +0000 |
commit | 297ca0d50c404e957640c320ef65a098371f4521 (patch) | |
tree | 685f5c2f1d9a25964bedc6d5f84e52e0dee78519 | |
parent | fd4f944df5f002196fe706d5b8264a2e37b214a3 (diff) | |
download | gdm-297ca0d50c404e957640c320ef65a098371f4521.tar.gz |
Fix comparison with string literal. Fix by Hans Petter Jansson
2007-04-02 Brian Cameron <brian.cameron@sun.com>
* gui/gdmdynamic.c: Fix comparison with string literal.
Fix by Hans Petter Jansson <hpj@novell.com>. Fixes
bug #407687.
svn path=/branches/gnome-2-14/; revision=4748
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gui/gdmdynamic.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-02-14 Brian Cameron <brian.cameron@sun.com> + + * gui/gdmdynamic.c: Fix comparison with string literal. + Fix by Hans Petter Jansson <hpj@novell.com>. Fixes + bug #407687. + 2007-04-02 Brian Cameron <brian.cameron@sun.com> * docs/C/gdm.xml: Add <revhistory> tag so that this branch of GDM diff --git a/gui/gdmdynamic.c b/gui/gdmdynamic.c index 4cda664a..43fb97b8 100644 --- a/gui/gdmdynamic.c +++ b/gui/gdmdynamic.c @@ -153,7 +153,7 @@ main (int argc, char *argv[]) } /* process remaining option arguments for -l */ - if (command == GDM_SUP_ATTACHED_SERVERS) + if (command != NULL && strcmp (command, GDM_SUP_ATTACHED_SERVERS) == 0) for (; optind<argc; optind++) params = argv[optind]; |