diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-02-22 15:00:49 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-02-22 15:00:49 +0000 |
commit | 897ac11952b8485076074a85cd688db33797c7c5 (patch) | |
tree | f6cfd89211787d8ae05e64ce79354c735384c4d9 /ext/mysql/php_mysql.c | |
parent | 8f1cde33ab740cee07d39a1fc64004625e14eee4 (diff) | |
download | php-git-897ac11952b8485076074a85cd688db33797c7c5.tar.gz |
MFH: Fixed bug #31288 (Possible crash in mysql_fetch_field(), if
mysql_list_fields() was not called previously).
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r-- | ext/mysql/php_mysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 9e91c263cd..0a26b23927 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -2213,7 +2213,7 @@ static void php_mysql_field_info(INTERNAL_FUNCTION_PARAMETERS, int entry_type) { zval **result, **field; MYSQL_RES *mysql_result; - MYSQL_FIELD *mysql_field; + MYSQL_FIELD *mysql_field = {0}; char buf[512]; int len; |