summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-02-19 21:32:24 +0100
committerportix <portix@gmx.net>2012-02-19 21:32:24 +0100
commit005c0ef9a819644684a64fd891b12642059303bf (patch)
treef7737bc702231e65a7402899a9de8597923385d6 /src/util.c
parent423df957879b2e83ff042bf9f837758550821c2c (diff)
downloaddwb-005c0ef9a819644684a64fd891b12642059303bf.zip
Fixing segfault when startpage is not set; fixing glib errors if documentviewer and fonts are not set
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 {