From 6dc3d02ae5959a4ec5f3de4765d7440a580ff3e1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 2 Nov 2008 00:33:33 +0100 Subject: [PATCH] parse_format_string(): Explicitly set the result pointer to NULL on errors. --- format.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2