diff options
Diffstat (limited to 'x11-apps/grandr/files/0.1-fix-segfault-without-gconf-value.patch')
-rw-r--r-- | x11-apps/grandr/files/0.1-fix-segfault-without-gconf-value.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/x11-apps/grandr/files/0.1-fix-segfault-without-gconf-value.patch b/x11-apps/grandr/files/0.1-fix-segfault-without-gconf-value.patch new file mode 100644 index 000000000000..fe4cad78985b --- /dev/null +++ b/x11-apps/grandr/files/0.1-fix-segfault-without-gconf-value.patch @@ -0,0 +1,13 @@ +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); |