From: Andre Noll Date: Sun, 28 Aug 2011 04:35:37 +0000 (+0200) Subject: string: Set result pointer to NULL on errors. X-Git-Tag: v0.4.9~30 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=663860bf5e3e3df1081900ed03d8cc63c483b42d;ds=sidebyside string: Set result pointer to NULL on errors. ...and be strict in what you return. --- diff --git a/string.c b/string.c index b16109ca..0a32c0f4 100644 --- a/string.c +++ b/string.c @@ -762,6 +762,7 @@ err: while (num_words > 0) free(argv[--num_words]); free(argv); + *result = NULL; return ret; }