From 7da09530b870c9326fd59c2e5160f3e4281d1e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 29 Dec 2018 17:12:11 +0100 Subject: [PATCH] particle/string: tags_expand_template() now returns NULL if template is NULL --- particles/string.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/particles/string.c b/particles/string.c index 47ced4e..6f3b099 100644 --- a/particles/string.c +++ b/particles/string.c @@ -87,9 +87,7 @@ instantiate(const struct particle *particle, const struct tag_set *tags) e->font = p->font; e->foreground = p->foreground; - char *on_click = particle->on_click_template != NULL - ? tags_expand_template(particle->on_click_template, tags) - : NULL; + char *on_click = tags_expand_template(particle->on_click_template, tags); struct exposable *exposable = exposable_common_new(particle, on_click); exposable->private = e;