List:Commits« Previous MessageNext Message »
From:Chuck Bell Date:August 13 2008 12:47pm
Subject:bzr push into mysql-6.0 branch (cbell:2673)
View as plain text  
 2673 Chuck Bell	2008-08-13
      Added initialization for variables due to compiler warning on Windows.
      Changed comment type due to compiler error on Solaris.
modified:
  sql/backup/stream_v1.c

=== modified file 'sql/backup/stream_v1.c'
--- a/sql/backup/stream_v1.c	2008-08-11 16:06:30 +0000
+++ b/sql/backup/stream_v1.c	2008-08-13 12:41:33 +0000
@@ -1555,13 +1555,18 @@ int bstream_wr_item_def(backup_stream *s
   blob data;
   int ret=BSTREAM_OK;
 
+  /* initialize variables */
+  data.begin= 0;
+  data.end= 0;
+  query.begin= 0;
+  query.end= 0;
   ret= bcat_get_item_create_query(cat,item,&query);
   if (ret == BSTREAM_OK) 
     flags |= BSTREAM_FLAG_HAS_CREATE_STMT;
   else if (ret == BSTREAM_ERROR) 
     goto wr_error;
 
-  // bcat_get_item_create_data not in use yet. 
+  /* bcat_get_item_create_data not in use yet. */
   /*
   ret= bcat_get_item_create_data(cat,item,&data);
   if (ret == BSTREAM_OK)

Thread
bzr push into mysql-6.0 branch (cbell:2673) Chuck Bell13 Aug