summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2011-11-29 15:52:47 +0100
committerTor Didriksen <tor.didriksen@oracle.com>2011-11-29 15:52:47 +0100
commit98adda50958504db0439ad6c72c96d663fb99bec (patch)
tree47035ce169ceb8b487b1f03d3782da3c4612863d /sql/log.cc
parentc67a91f11afd730ab050e3c5da16411b95c325a7 (diff)
downloadmariadb-git-98adda50958504db0439ad6c72c96d663fb99bec.tar.gz
Build broken for gcc 4.5.1 in optimized mode.
readline.cc: In function char* batch_readline(LINE_BUFFER*): readline.cc:60:9: error: out_length may be used uninitialized in this function log.cc: In function int find_uniq_filename(char*): log.cc:1857:8: error: number may be used uninitialized in this function
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 77d12641442..cca403ca1be 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -1854,7 +1854,7 @@ static void setup_windows_event_source()
static int find_uniq_filename(char *name)
{
- long number;
+ long number= 0;
uint i;
char buff[FN_REFLEN];
struct st_my_dir *dir_info;