diff options
author | Josh Rickmar <jrick@devio.us> | 2012-06-21 13:16:15 -0400 |
---|---|---|
committer | Josh Rickmar <jrick@devio.us> | 2012-06-21 13:40:33 -0400 |
commit | 7c50f59bdf5afaa6872dd6c283e9988c729508f5 (patch) | |
tree | 0cb4b95a149d24f1d854a80a12e0b46abbfea37e | |
parent | a70261b80f41ab209295dadf49dc50da93ede0ed (diff) | |
download | xombrero-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.
-rw-r--r-- | xombrero.c | 1 |
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, |