From: Dale Weiler Date: Sat, 13 Apr 2013 18:04:07 +0000 (+0000) Subject: Fix possible bug X-Git-Tag: before-library~75 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=95172861f5ef0849804fe3ee224741ef07574974;p=xonotic%2Fgmqcc.git Fix possible bug --- diff --git a/ftepp.c b/ftepp.c index 2337d5a..6a5e9a1 100644 --- a/ftepp.c +++ b/ftepp.c @@ -471,7 +471,7 @@ static bool ftepp_define_body(ftepp_t *ftepp, ppmacro *macro) static bool ftepp_define(ftepp_t *ftepp) { - ppmacro *macro; + ppmacro *macro = NULL; size_t l = ftepp_ctx(ftepp).line; (void)ftepp_next(ftepp); @@ -520,7 +520,7 @@ static bool ftepp_define(ftepp_t *ftepp) return true; cleanup_false: - ppmacro_delete(macro); + if (macro) ppmacro_delete(macro); return false; }