aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer.c')
-rw-r--r--src/renderer.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/renderer.c b/src/renderer.c
index 6cf924e..defbe10 100644
--- a/src/renderer.c
+++ b/src/renderer.c
@@ -97,10 +97,14 @@ blogc_split_list_variable(const char *name, b_trie_t *global, b_trie_t *local)
b_slist_t *rv = NULL;
- char **tmp = b_str_split(value, ',', 0);
- for (unsigned int i = 0; tmp[i] != NULL; i++)
- rv = b_slist_append(rv, b_strdup(b_str_strip(tmp[i])));
- b_strv_free(tmp);
+ char **tmp = b_str_split(value, ' ', 0);
+ for (unsigned int i = 0; tmp[i] != NULL; i++) {
+ if (tmp[i][0] != '\0') // ignore empty strings
+ rv = b_slist_append(rv, tmp[i]);
+ else
+ free(tmp[i]);
+ }
+ free(tmp);
return rv;
}