From 005c0ef9a819644684a64fd891b12642059303bf Mon Sep 17 00:00:00 2001 From: portix Date: Sun, 19 Feb 2012 21:32:24 +0100 Subject: Fixing segfault when startpage is not set; fixing glib errors if documentviewer and fonts are not set --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util.c') 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 { -- cgit v1.2.3