From: Johannes Schlüter Date: Wed, 21 Sep 2011 12:34:15 +0000 (+0000) Subject: - Use the proper variable here. X-Git-Tag: php-5.5.0alpha1~1096 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a53c7127bf0bab3dada0b893b82ec8fbcea84d4f;p=php - Use the proper variable here. --- diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index b3b83958a1..c640968f7f 100644 --- a/ext/mysqli/mysqli.c +++ b/ext/mysqli/mysqli.c @@ -539,7 +539,7 @@ static MYSQLND *mysqli_convert_zv_to_mysqlnd(zval *zv TSRMLS_DC) php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't fetch %s", intern->zo.ce->name); return NULL; } - mysql = ((MY_MYSQL *)my_res->ptr)->mysql; + mysql = (MY_MYSQL *)(my_res->ptr); return mysql ? mysql->mysql : NULL; } return NULL;