diff options
author | portix <portix@gmx.net> | 2010-12-22 12:52:31 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2010-12-22 12:52:31 +0100 |
commit | ee1f3776310676fd6ef0f48cdc6ca077b02faace (patch) | |
tree | f6bff2bedd4ccee4d66a0aa32a346fbccec8b1f2 /src/util.c | |
parent | 68a00da9bd9b0b59aafcdf1141dbf6dac5c7aa48 (diff) | |
download | dwb-ee1f3776310676fd6ef0f48cdc6ca077b02faace.zip |
allow empty strings in adblock
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -403,7 +403,7 @@ dwb_true() { /* dwb_return(const char *) return char * (alloc) {{{*/ char * dwb_return(const char *ret) { - return g_strdup(ret); + return ret && strlen(ret) > 0 ? g_strdup(ret) : NULL; }/*}}}*/ /* dwb_malloc(size_t size) return: void* {{{*/ |