From: Ilia Alshanetsky Date: Tue, 22 Feb 2005 14:58:49 +0000 (+0000) Subject: Fixed bug #31288 (Possible crash in mysql_fetch_field(), if X-Git-Tag: RELEASE_0_3~256 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d97da3e2222cf10d0b6a0f97c4b0d4fbb56e4db8;p=php Fixed bug #31288 (Possible crash in mysql_fetch_field(), if mysql_list_fields() was not called previously). --- diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index f8da8c8ea5..3020cf4f48 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -2298,7 +2298,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;