]> granicus.if.org Git - php/commitdiff
Fixed bug #31288 (Possible crash in mysql_fetch_field(), if
authorIlia Alshanetsky <iliaa@php.net>
Tue, 22 Feb 2005 14:58:49 +0000 (14:58 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 22 Feb 2005 14:58:49 +0000 (14:58 +0000)
mysql_list_fields() was not called previously).

ext/mysql/php_mysql.c

index f8da8c8ea53e8a9c0957c07fd4682a7944a22f5f..3020cf4f48ea1fb8af19826c685268c0c19bfdbb 100644 (file)
@@ -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;