summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.(none)>2007-08-01 22:40:04 +0400
committerunknown <kostja@bodhi.(none)>2007-08-01 22:40:04 +0400
commitccada6ff956e2fed0347051890445049ec9ed8df (patch)
tree28c9218c0edf76306892a3f41b10c92f2e2e1e53
parentd2b9c8c219f9a51485b55a02b698d1087ad8cc4a (diff)
downloadmariadb-git-ccada6ff956e2fed0347051890445049ec9ed8df.tar.gz
Fix a valgrind warning. For some reason it never popped up before.
sql/sql_class.cc: Fix a valgrind warning (row_count_func is used before it was initialized in SQLCOM_CALL)
-rw-r--r--sql/sql_class.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index da975ee3103..31621c531b0 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -400,6 +400,7 @@ THD::THD()
used_tables=0;
cuted_fields= sent_row_count= row_count= 0L;
limit_found_rows= 0;
+ row_count_func= -1;
statement_id_counter= 0UL;
#ifdef ERROR_INJECT_SUPPORT
error_inject_value= 0UL;