From: Kees Monshouwer Date: Thu, 25 Feb 2016 19:29:20 +0000 (+0000) Subject: uninitialized variable if mysql version < 5.5 X-Git-Tag: rec-4.0.0-alpha2~38^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3475%2Fhead;p=thirdparty%2Fpdns.git uninitialized variable if mysql version < 5.5 --- diff --git a/modules/gmysqlbackend/smysql.cc b/modules/gmysqlbackend/smysql.cc index 58a754ed8d..4035e3c0b4 100644 --- a/modules/gmysqlbackend/smysql.cc +++ b/modules/gmysqlbackend/smysql.cc @@ -255,7 +255,7 @@ public: SSqlStatement* reset() { if (!d_stmt) return this; - int err; + int err=0; mysql_stmt_free_result(d_stmt); #if MYSQL_VERSION_ID >= 50500 while((err = mysql_stmt_next_result(d_stmt)) == 0) {