Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MFH:

* Fix gcov warnings about parameters not initialized (Thanks for noticing Felipe!)
* Changed int to be long in mssql_num_fields
  • Loading branch information...
commit d77277c0e247e5d8d89d91e9a57aea8ed23d5995 1 parent 8d03c0d
@KalleZ KalleZ authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 ext/mssql/php_mssql.c
View
5 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:
Please sign in to comment.
Something went wrong with that request. Please try again.