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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user