[Commits] Rev 3676: Fix of using uninitialized variadle. in file:///home/bell/maria/bzr/work-maria-10.0-base-merge-5.5/

sanja at montyprogram.com sanja at montyprogram.com
Mon Aug 19 12:58:59 EEST 2013


At file:///home/bell/maria/bzr/work-maria-10.0-base-merge-5.5/

------------------------------------------------------------
revno: 3676
revision-id: sanja at montyprogram.com-20130718081618-meph43enxwcge5s6
parent: igor at askmonty.org-20130818192906-39spjhz7xqi88jqz
committer: sanja at montyprogram.com
branch nick: work-maria-5.5-valgrind
timestamp: Thu 2013-07-18 11:16:18 +0300
message:
  Fix of using uninitialized variadle.
-------------- next part --------------
=== modified file 'sql/sql_select.cc'
--- a/sql/sql_select.cc	2013-07-17 19:24:29 +0000
+++ b/sql/sql_select.cc	2013-07-18 08:16:18 +0000
@@ -16171,6 +16171,8 @@ create_internal_tmp_table_from_heap2(THD
   const char *save_proc_info;
   int write_err= 0;
   DBUG_ENTER("create_internal_tmp_table_from_heap2");
+  if (is_duplicate)
+    *is_duplicate= FALSE;
 
   if (table->s->db_type() != heap_hton || 
       error != HA_ERR_RECORD_FILE_FULL)

=== modified file 'sql/sql_union.cc'
--- a/sql/sql_union.cc	2013-07-17 19:24:29 +0000
+++ b/sql/sql_union.cc	2013-07-18 08:16:18 +0000
@@ -83,7 +83,7 @@ int select_union::send_data(List<Item> &
       */
       return -1;
     }
-    bool is_duplicate;
+    bool is_duplicate= FALSE;
     /* create_internal_tmp_table_from_heap will generate error if needed */
     if (table->file->is_fatal_error(write_err, HA_CHECK_DUP) &&
         create_internal_tmp_table_from_heap(thd, table,



More information about the commits mailing list