Skip to content

Commit 744ec05

Browse files
committed
Fix DBG_RETURN
1 parent c2df652 commit 744ec05

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/mysqlnd/mysqlnd_ps.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,6 +1752,7 @@ MYSQLND_METHOD_PRIVATE(mysqlnd_stmt, close_on_server)(MYSQLND_STMT * const s, bo
17521752
MYSQLND_STMT_DATA * stmt = s? s->data : NULL;
17531753
MYSQLND_CONN_DATA * conn = stmt? stmt->conn : NULL;
17541754
enum_mysqlnd_collected_stats statistic = STAT_LAST;
1755+
enum_func_status ret = PASS;
17551756

17561757
DBG_ENTER("mysqlnd_stmt::close_on_server");
17571758
if (!stmt || !conn) {
@@ -1789,7 +1790,6 @@ MYSQLND_METHOD_PRIVATE(mysqlnd_stmt, close_on_server)(MYSQLND_STMT * const s, bo
17891790
STAT_FREE_RESULT_EXPLICIT);
17901791

17911792
if (GET_CONNECTION_STATE(&conn->state) == CONN_READY) {
1792-
enum_func_status ret = FAIL;
17931793
const size_t stmt_id = stmt->stmt_id;
17941794

17951795
ret = conn->command->stmt_close(conn, stmt_id);
@@ -1825,7 +1825,7 @@ MYSQLND_METHOD_PRIVATE(mysqlnd_stmt, close_on_server)(MYSQLND_STMT * const s, bo
18251825
stmt->conn = NULL;
18261826
}
18271827

1828-
DBG_RETURN(PASS);
1828+
DBG_RETURN(ret);
18291829
}
18301830
/* }}} */
18311831

0 commit comments

Comments
 (0)