diff options
author | portix <none@none> | 2012-07-17 23:29:41 +0200 |
---|---|---|
committer | portix <none@none> | 2012-07-17 23:29:41 +0200 |
commit | 5ef8d6b90327cea0b5188b1a373497f9a3ce4e3f (patch) | |
tree | e57a2e1b1e80e0ab9dd129826c87d179777f8969 /src/adblock.c | |
parent | 232af7d6dbc7516b405d17c86d255aca1e7949ac (diff) | |
download | dwb-5ef8d6b90327cea0b5188b1a373497f9a3ce4e3f.zip |
Check if filterlist is NULL BEFORE tilde expansion
Diffstat (limited to 'src/adblock.c')
-rw-r--r-- | src/adblock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/adblock.c b/src/adblock.c index b6d16527..cfa7c77d 100644 --- a/src/adblock.c +++ b/src/adblock.c @@ -824,10 +824,10 @@ adblock_init() { if (!GET_BOOL("adblocker")) return false; char *filterlist = GET_CHAR("adblocker-filterlist"); - char buffer[PATH_MAX]; - filterlist = util_expand_home(buffer, filterlist, PATH_MAX); if (filterlist == NULL) return false; + char buffer[PATH_MAX]; + filterlist = util_expand_home(buffer, filterlist, PATH_MAX); if (!g_file_test(filterlist, G_FILE_TEST_EXISTS)) { fprintf(stderr, "Filterlist not found: %s\n", filterlist); return false; |