1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fix compiler warnings

This commit is contained in:
Georg Richter
2024-04-24 11:05:26 +02:00
parent fef3e4ed6d
commit f4e8c085fc
2 changed files with 2 additions and 3 deletions

View File

@@ -2224,7 +2224,6 @@ static my_bool madb_reset_stmt(MYSQL_STMT *stmt, unsigned int flags)
{
MYSQL *mysql= stmt->mysql;
my_bool ret= 0;
LIST *li_stmt= mysql->stmts;
/* CONC-667: If an other statement has a pending result set, we
need to return an error */
@@ -2332,7 +2331,7 @@ static my_bool mysql_stmt_internal_reset(MYSQL_STMT *stmt, my_bool is_close)
stmt->fetch_row_func == stmt_unbuffered_fetch)
flags|= MADB_RESET_BUFFER;
if (ret= madb_reset_stmt(stmt, flags))
if ((ret= madb_reset_stmt(stmt, flags)))
return ret;
if (stmt->stmt_id)