summaryrefslogtreecommitdiff
path: root/ext/mssql/php_mssql.c
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2008-10-09 18:34:20 +0000
committerKalle Sommer Nielsen <kalle@php.net>2008-10-09 18:34:20 +0000
commitd77277c0e247e5d8d89d91e9a57aea8ed23d5995 (patch)
tree8896998a6075eba6a12e11fd6eba3273e55d202f /ext/mssql/php_mssql.c
parent8d03c0de19186fc9c4a0927416348555b7aa0986 (diff)
downloadphp-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.c5
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: