1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove redundant check in mysqlnd_fetch_stmt_row_cursor (#13850)

result is always non-NULL because it is dereferenced above.
Similarly, result->unbuf and stmt must also be non-NULL.
This commit is contained in:
Niels Dossche
2024-03-31 16:16:27 +02:00
committed by GitHub
parent eaaf175bbb
commit f6447b337e

View File

@@ -764,7 +764,7 @@ mysqlnd_fetch_stmt_row_cursor(MYSQLND_RES * result, zval **row_ptr, const unsign
DBG_ENTER("mysqlnd_fetch_stmt_row_cursor");
if (!stmt || !stmt->conn || !result || !result->conn || !result->unbuf) {
if (!stmt->conn || !result->conn) {
DBG_ERR("no statement");
DBG_RETURN(FAIL);
}