]> git.tuebingen.mpg.de Git - adu.git/blobdiff - format.c
Merge commit 'fml/master'
[adu.git] / format.c
index 37bb087ba02fff7f472d14b0739e715626263c26..f1d1247074da8c97c41368aa3663b037dbbfc4bd 100644 (file)
--- a/format.c
+++ b/format.c
@@ -4,7 +4,7 @@
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
 
-/** \file format.c Functions for pretty-printing numbers and strings. */
+/** \file format.c \brief Functions for pretty-printing numbers and strings. */
 
 #include <dirent.h> /* readdir() */
 #include "adu.h"
@@ -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;
 }