diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2008-10-09 18:34:20 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2008-10-09 18:34:20 +0000 |
commit | d77277c0e247e5d8d89d91e9a57aea8ed23d5995 (patch) | |
tree | 8896998a6075eba6a12e11fd6eba3273e55d202f /ext/mssql/php_mssql.c | |
parent | 8d03c0de19186fc9c4a0927416348555b7aa0986 (diff) | |
download | php-git-d77277c0e247e5d8d89d91e9a57aea8ed23d5995.tar.gz |
MFH:
* Fix gcov warnings about parameters not initialized (Thanks for noticing Felipe!)
* Changed int to be long in mssql_num_fields
Diffstat (limited to 'ext/mssql/php_mssql.c')
-rw-r--r-- | ext/mssql/php_mssql.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index e29a5e3f02..d44452518e 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -1322,7 +1322,7 @@ PHP_FUNCTION(mssql_query) char *query; zval *mssql_link_index = NULL; int query_len, retvalue, batchsize, num_fields; - long zbatchsize; + long zbatchsize = 0; mssql_link *mssql_ptr; mssql_result *result; int id = -1; @@ -1490,7 +1490,8 @@ static void php_mssql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type) { zval *mssql_result_index; mssql_result *result; - int i, resulttype; + int i; + long resulttype = 0; switch (result_type) { case MSSQL_NUM: |