summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli.c
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2011-09-21 12:34:15 +0000
committerJohannes Schlüter <johannes@php.net>2011-09-21 12:34:15 +0000
commit679c87e999ef9d6f35ba636311ed84e4982cc2ed (patch)
treec0caeb802301908933b2ad06fb6ef0de6af92768 /ext/mysqli/mysqli.c
parent0203c31f78fc51205c36919f6adffe7b88783177 (diff)
downloadphp-git-679c87e999ef9d6f35ba636311ed84e4982cc2ed.tar.gz
- Use the proper variable here.
Diffstat (limited to 'ext/mysqli/mysqli.c')
-rw-r--r--ext/mysqli/mysqli.c2
1 files changed, 1 insertions, 1 deletions
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;