Skip to content

Commit 3d51b1d

Browse files
committed
Fix the fix (Nikita), thanks!
1 parent 5e2b834 commit 3d51b1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/mssql/php_mssql.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2235,7 +2235,7 @@ PHP_FUNCTION(mssql_guid_string)
22352235
char *binary;
22362236
int binary_len;
22372237
zend_bool sf = 0;
2238-
char buffer[32+1] = NULL;
2238+
char buffer[32+1] = { 0 };
22392239

22402240
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &binary, &binary_len, &sf) == FAILURE) {
22412241
return;
@@ -2251,7 +2251,7 @@ PHP_FUNCTION(mssql_guid_string)
22512251
RETURN_STRING(buffer, 1);
22522252
} else {
22532253
int i;
2254-
char buffer2[36+1] = NULL;
2254+
char buffer2[36+1] = { 0 };
22552255

22562256
/* FIXME this works only on little endian machine */
22572257
for (i=0; i<4; i++) {

0 commit comments

Comments
 (0)