summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornags <nags@nags-desktop.(none)>2010-01-10 17:38:59 -0800
committernags <nags@nags-desktop.(none)>2010-01-10 17:38:59 -0800
commit6ce8da4599b8a302ecf516756211044fa9a94c6b (patch)
tree3bf4387352f252d3b0d2d723b1af9192b5e07a35
parentd9b5dad0477e597b377b5e3f1d7c9033eb6041da (diff)
Check for NULL
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index a7735ef..182d471 100644
--- a/src/device.c
+++ b/src/device.c
@@ -495,7 +495,7 @@ get_keyboard_keycodes() {
split = g_strsplit(line, "=", 2);
keycode = atoi(split[0] + 7);
- if (strlen(split[1]) > 0) {
+ if (split[1] && strlen(split[1]) > 0) {
gchar **space_split = g_strsplit(split[1], " ", 3);
NonPrint_Key_Synth_Vals[index].sym = space_split[1];
NonPrint_Key_Synth_Vals[index].KeyVal = keycode;