]> git.tuebingen.mpg.de Git - adu.git/blobdiff - format.c
Add man page, README, INSTALL, generate index.html.
[adu.git] / format.c
index f6b1f48d102d9762696de1345fd61cdce9c83c28..bcdbff9ff425df1783975cf8ac62a64ab28fa40e 100644 (file)
--- a/format.c
+++ b/format.c
@@ -259,6 +259,7 @@ err:
        }
        free(info->items);
        free(info);
+       *result = NULL;
        return ret;
 }
 
@@ -401,6 +402,8 @@ char *format_items(struct format_info *info, union atom_value *values)
        int i;
        char *buf = NULL;
 
+       if (!info)
+               return NULL;
        for (i = 0; info->items[i]; i++) {
                struct atom *a;
                struct format_item *fi = info->items[i];