Skip to content

Commit d77277c

Browse files
committed
MFH:
* Fix gcov warnings about parameters not initialized (Thanks for noticing Felipe!) * Changed int to be long in mssql_num_fields
1 parent 8d03c0d commit d77277c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/mssql/php_mssql.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ PHP_FUNCTION(mssql_query)
13221322
char *query;
13231323
zval *mssql_link_index = NULL;
13241324
int query_len, retvalue, batchsize, num_fields;
1325-
long zbatchsize;
1325+
long zbatchsize = 0;
13261326
mssql_link *mssql_ptr;
13271327
mssql_result *result;
13281328
int id = -1;
@@ -1490,7 +1490,8 @@ static void php_mssql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
14901490
{
14911491
zval *mssql_result_index;
14921492
mssql_result *result;
1493-
int i, resulttype;
1493+
int i;
1494+
long resulttype = 0;
14941495

14951496
switch (result_type) {
14961497
case MSSQL_NUM:

0 commit comments

Comments
 (0)