mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
fixes/cleanups according to Coverity report
This commit is contained in:
@@ -717,11 +717,7 @@ static int check_master_version(MYSQL* mysql)
|
||||
|
||||
if (mysql_query(mysql, "SELECT VERSION()") ||
|
||||
!(res = mysql_store_result(mysql)))
|
||||
{
|
||||
mysql_close(mysql);
|
||||
die("Error checking master version: %s",
|
||||
mysql_error(mysql));
|
||||
}
|
||||
die("Error checking master version: %s", mysql_error(mysql));
|
||||
if (!(row = mysql_fetch_row(res)))
|
||||
{
|
||||
mysql_free_result(res);
|
||||
|
Reference in New Issue
Block a user