summaryrefslogtreecommitdiff
path: root/ext/mysql
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-02-22 14:58:49 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-02-22 14:58:49 +0000
commitd97da3e2222cf10d0b6a0f97c4b0d4fbb56e4db8 (patch)
treeb67c510c5955ef7b781aa66f6eee87da921715ad /ext/mysql
parent237cd7e5115ba9c20d154dea3cdcdec947f26288 (diff)
downloadphp-git-d97da3e2222cf10d0b6a0f97c4b0d4fbb56e4db8.tar.gz
Fixed bug #31288 (Possible crash in mysql_fetch_field(), if
mysql_list_fields() was not called previously).
Diffstat (limited to 'ext/mysql')
-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 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;