From: Andre Noll <maan@systemlinux.org>
Date: Sat, 1 Nov 2008 23:33:33 +0000 (+0100)
Subject: parse_format_string(): Explicitly set the result pointer to NULL on errors.
X-Git-Tag: v0.0.4~11
X-Git-Url: https://git.tue.mpg.de/?a=commitdiff_plain;h=6dc3d02ae5959a4ec5f3de4765d7440a580ff3e1;p=adu.git

parse_format_string(): Explicitly set the result pointer to NULL on errors.
---

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