mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user