Skip to content

Commit a62e6ba

Browse files
committed
Remove redundant check in mysqlnd_fetch_stmt_row_cursor
result is always non-NULL because it is dereferenced above. Similarly, result->unbuf must also be non-NULL.
1 parent a4534fa commit a62e6ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqlnd/mysqlnd_ps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ mysqlnd_fetch_stmt_row_cursor(MYSQLND_RES * result, zval **row_ptr, const unsign
764764

765765
DBG_ENTER("mysqlnd_fetch_stmt_row_cursor");
766766

767-
if (!stmt || !stmt->conn || !result || !result->conn || !result->unbuf) {
767+
if (!stmt || !stmt->conn || !result->conn) {
768768
DBG_ERR("no statement");
769769
DBG_RETURN(FAIL);
770770
}

0 commit comments

Comments
 (0)