From: Andre Noll 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: http://git.tuebingen.mpg.de/?p=adu.git;a=commitdiff_plain;h=6dc3d02ae5959a4ec5f3de4765d7440a580ff3e1;hp=a6c1851843a79d048fb43ec435107a795b8e986e 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; }