summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Blin <blino@mandriva.com>2007-06-19 23:23:47 +0100
committerKeith Packard <keithp@neko.keithp.com>2007-06-19 23:23:47 +0100
commit352dbee6489dd768893493f144dff2c85edc1f0c (patch)
tree358dffafe1bf7da18eebd9f5754db1052015b548
parent35cfae6f6e8b7712b95b73976650856b91e6c262 (diff)
fixes a segfault at startup when no gconf value is set
-rw-r--r--src/grandr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grandr.c b/src/grandr.c
index e3e619e..8f0980b 100644
--- a/src/grandr.c
+++ b/src/grandr.c
@@ -1381,7 +1381,7 @@ set_hotkeys_view (GtkListStore *hotkey_store)
NULL);
command = gconf_client_get_string(client, GCONF_KEY2,
NULL);
- if (strcmp(key, HOTKEY) == 0 && strcmp(command, APP_NAME) == 0) {
+ if (key && strcmp(key, HOTKEY) == 0 && command && strcmp(command, APP_NAME) == 0) {
gtk_toggle_button_set_active (hotkey_cbtn, TRUE);
} else {
gtk_toggle_button_set_active (hotkey_cbtn, FALSE);