summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-02-22 14:59:30 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-02-22 14:59:30 +0000
commit4b0d2f3b715dd323186cad7d62ddb2992eba3ab7 (patch)
tree4f93a61e9214e938cc1cfc88928c806bd7ab4afd /ext/mysql/php_mysql.c
parent05e84a25aa369326755225d28b664c76193c6e1e (diff)
downloadphp-git-4b0d2f3b715dd323186cad7d62ddb2992eba3ab7.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 11dae41632..f4d1e722de 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;