From 06ed2a8ccb7f05eacb530a34f222a1d900f35bf5 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 9 Nov 2008 20:30:08 +0100 Subject: [PATCH] format.c: Return an empty buffer for empty format strings rather than NULL. --- format.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/format.c b/format.c index 37bb087..02edf37 100644 --- a/format.c +++ b/format.c @@ -457,5 +457,7 @@ char *format_items(struct format_info *info, union atom_value *values) buf = adu_strcat(buf, val); free(val); } + if (!buf) + buf = adu_strdup(""); return buf; } -- 2.39.2