summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Meskes2019-01-29 13:50:16 +0000
committerMichael Meskes2019-01-30 09:39:32 +0000
commit5c04630ad05e6e33bc18a6846b4086f9794d99e8 (patch)
tree3a236635fce482944c010aeef531a9d7e72f229e /src
parentdfa774ff9ac9de33d8cb98b91906ada55a2ab1df (diff)
Make sure that ecpglib's statement variable has a defined value no matter what.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/ecpglib/execute.c2
1 files changed, 1 insertions, 1 deletions
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;