summaryrefslogtreecommitdiff
path: root/desktop/j4-dmenu-desktop/fix_segfault.diff
blob: 32bfca11c8755f0e9f012d7161283afd7c854866 (plain)
1
2
3
4
5
6
7
8
9
10
11
diff -Naur j4-dmenu-desktop-master/src/desktop.cc j4-dmenu-desktop-master.patched/src/desktop.cc
--- j4-dmenu-desktop-master/src/desktop.cc	2013-05-19 11:46:03.000000000 -0400
+++ j4-dmenu-desktop-master.patched/src/desktop.cc	2013-06-28 05:39:19.000000000 -0400
@@ -59,6 +59,7 @@
             char *key=line, *value;
             // Split that string in place
             value = strchr(line, '=');
+				if(!value) continue;
             value[0] = 0;
             value++;