cocci: use strempty() at more places

This shortens the code by a few lines.
This commit is contained in:
Lennart Poettering
2018-01-10 17:11:19 +01:00
parent 4631116dd9
commit ad5d4b1703
8 changed files with 49 additions and 19 deletions
+1 -2
View File
@@ -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",