Commit 740d3e7a authored by Monty's avatar Monty

Trivial fixes:

- Removed not used variable 'file' from MYSQL_BIN_LOG::open()
- Assigned not initialized variable in connect/tabext.cpp
parent 3c63e2f8
......@@ -3694,7 +3694,6 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
bool null_created_arg,
bool need_mutex)
{
File file= -1;
xid_count_per_binlog *new_xid_list_entry= NULL, *b;
DBUG_ENTER("MYSQL_BIN_LOG::open");
......@@ -4090,8 +4089,6 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
sql_print_error(fatal_log_error, (name) ? name : log_name, tmp_errno);
if (new_xid_list_entry)
delete new_xid_list_entry;
if (file >= 0)
mysql_file_close(file, MYF(0));
close(LOG_CLOSE_INDEX);
DBUG_RETURN(1);
}
......@@ -5363,8 +5360,6 @@ int MYSQL_BIN_LOG::new_file_without_locking()
/**
Start writing to a new log file or reopen the old file.
@param need_lock Set to 1 if caller has not locked LOCK_log
@retval
nonzero - error
......
......@@ -330,7 +330,7 @@ bool TDBEXT::MakeSrcdef(PGLOBAL g)
char *catp = strstr(Srcdef, "%s");
if (catp) {
char *fil1 = 0, *fil2;
char *fil1 = 0, *fil2= 0;
PCSZ ph = ((EXTDEF*)To_Def)->Phpos;
if (!ph)
......
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