parse_format_string(): Explicitly set the result pointer to NULL on errors.
authorAndre Noll <maan@systemlinux.org>
Sat, 1 Nov 2008 23:33:33 +0000 (00:33 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 1 Nov 2008 23:33:33 +0000 (00:33 +0100)
format.c

index a3a01ba..bcdbff9 100644 (file)
--- a/format.c
+++ b/format.c
@@ -259,6 +259,7 @@ err:
        }
        free(info->items);
        free(info);
+       *result = NULL;
        return ret;
 }