From: Michael Meskes Date: Tue, 29 Jan 2019 13:50:16 +0000 (+0100) Subject: Make sure that ecpglib's statement variable has a defined value no matter what. X-Git-Tag: REL_12_BETA1~834 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c04630ad05e6e33bc18a6846b4086f9794d99e8;p=thirdparty%2Fpostgresql.git Make sure that ecpglib's statement variable has a defined value no matter what. --- diff --git a/src/interfaces/ecpg/ecpglib/execute.c b/src/interfaces/ecpg/ecpglib/execute.c index e25f7ebf825..4c499fb457d 100644 --- a/src/interfaces/ecpg/ecpglib/execute.c +++ b/src/interfaces/ecpg/ecpglib/execute.c @@ -1755,7 +1755,7 @@ ecpg_do_prologue(int lineno, const int compat, const int force_indicator, enum ECPG_statement_type statement_type, const char *query, va_list args, struct statement **stmt_out) { - struct statement *stmt; + struct statement *stmt = NULL; struct connection *con; enum ECPGttype type; struct variable **list;