changeset 9:eff482803d30

fix uninitialized values
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Jul 2018 08:36:20 +0200
parents d30d43c0f4f0
children 3686ba3f9cdb
files Framework/MySQL/MySQLStatement.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/MySQL/MySQLStatement.cpp	Mon Jul 09 08:13:43 2018 +0200
+++ b/Framework/MySQL/MySQLStatement.cpp	Mon Jul 09 08:36:20 2018 +0200
@@ -191,6 +191,8 @@
     {
       memset(&bind, 0, sizeof(bind));
 
+      isNull_ = false;
+      isError_ = false;
       length_ = 0;
 
       bind.buffer_length = buffer_.size();
@@ -203,7 +205,6 @@
         // Only fetches the actual size of the field (*):
         // mysql_stmt_fetch_column() must be invoked afterward
         bind.buffer = 0;
-        isError_ = false;
       }
       else
       {