summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 766187bd..f7808bb1 100644
--- a/src/util.c
+++ b/src/util.c
@@ -149,7 +149,7 @@ util_char_to_arg(char *value, DwbType type) {
}
}
if (type == BOOLEAN) {
- if(!g_ascii_strcasecmp(value, "false") || !g_strcmp0(value, "0")) {
+ if(value == NULL || !g_ascii_strcasecmp(value, "false") || !g_strcmp0(value, "0")) {
ret->b = false;
}
else {