summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2007-04-02 05:38:23 +0000
committerBrian Cameron <bcameron@src.gnome.org>2007-04-02 05:38:23 +0000
commit297ca0d50c404e957640c320ef65a098371f4521 (patch)
tree685f5c2f1d9a25964bedc6d5f84e52e0dee78519
parentfd4f944df5f002196fe706d5b8264a2e37b214a3 (diff)
downloadgdm-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--ChangeLog6
-rw-r--r--gui/gdmdynamic.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ce02e2b4..03516a7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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];