From ad5d4b1703da43acfa69503c7101cb754066914c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 10 Jan 2018 17:11:19 +0100 Subject: cocci: use strempty() at more places This shortens the code by a few lines. --- src/shared/condition.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/shared/condition.c') diff --git a/src/shared/condition.c b/src/shared/condition.c index 7a825c3973..a2fd05c425 100644 --- a/src/shared/condition.c +++ b/src/shared/condition.c @@ -653,8 +653,7 @@ void condition_dump(Condition *c, FILE *f, const char *prefix, const char *(*to_ assert(c); assert(f); - if (!prefix) - prefix = ""; + prefix = strempty(prefix); fprintf(f, "%s\t%s: %s%s%s %s\n", -- cgit v1.2.1