Commit 98adda50 authored by Tor Didriksen's avatar Tor Didriksen

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
parent c67a91f1
......@@ -57,7 +57,7 @@ LINE_BUFFER *batch_readline_init(ulong max_size,FILE *file)
char *batch_readline(LINE_BUFFER *line_buff)
{
char *pos;
ulong out_length;
ulong out_length= 0;
if (!(pos=intern_read_line(line_buff, &out_length)))
return 0;
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment