about summary refs log tree commit diff stats
path: root/xombrero.c
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-06-21 13:16:15 -0400
committerJosh Rickmar <jrick@devio.us>2012-06-21 13:40:33 -0400
commit7c50f59bdf5afaa6872dd6c283e9988c729508f5 (patch)
tree0cb4b95a149d24f1d854a80a12e0b46abbfea37e /xombrero.c
parenta70261b80f41ab209295dadf49dc50da93ede0ed (diff)
downloadxombrero-7c50f59bdf5afaa6872dd6c283e9988c729508f5.tar.gz
Fix a possible segfault (null pointer dereference) and make
userstyle_global = 1 work again on startup if userstyle isn't set to
anything.
Diffstat (limited to 'xombrero.c')
-rw-r--r--xombrero.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xombrero.c b/xombrero.c
index 8c923ff..3f8333e 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -8207,6 +8207,7 @@ main(int argc, char **argv)
 	encoding = g_strdup(XT_DS_ENCODING);
 	spell_check_languages = g_strdup(XT_DS_SPELL_CHECK_LANGUAGES);
 	userstyle = g_strdup_printf("file://%s" PS "style.css", resource_dir);
+	stylesheet = g_strdup(userstyle);
 
 	/* set statically allocated (struct special) settings */
 	expand_tilde(default_script, sizeof default_script,