From 897ac11952b8485076074a85cd688db33797c7c5 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 22 Feb 2005 15:00:49 +0000 Subject: MFH: Fixed bug #31288 (Possible crash in mysql_fetch_field(), if mysql_list_fields() was not called previously). --- ext/mysql/php_mysql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mysql/php_mysql.c') 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; -- cgit v1.2.1