mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Make sure result is initilized
Practically this could only be an issue when overriding mysqlnd from an extension, but makes static analysis happy
This commit is contained in:
parent
74d434c091
commit
0265c2d961
@ -564,7 +564,7 @@ PHP_FUNCTION(mysqli_query)
|
||||
MY_MYSQL *mysql;
|
||||
zval *mysql_link;
|
||||
MYSQLI_RESOURCE *mysqli_resource;
|
||||
MYSQL_RES *result;
|
||||
MYSQL_RES *result = NULL;
|
||||
char *query = NULL;
|
||||
int query_len;
|
||||
long resultmode = MYSQLI_STORE_RESULT;
|
||||
@ -835,7 +835,7 @@ PHP_FUNCTION(mysqli_reap_async_query)
|
||||
MY_MYSQL *mysql;
|
||||
zval *mysql_link;
|
||||
MYSQLI_RESOURCE *mysqli_resource;
|
||||
MYSQL_RES *result;
|
||||
MYSQL_RES *result = NULL;
|
||||
|
||||
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &mysql_link, mysqli_link_class_entry) == FAILURE) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user