summaryrefslogtreecommitdiff
path: root/ext/mssql/php_mssql.c
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2016-08-06 12:08:13 +0200
committerKalle Sommer Nielsen <kalle@php.net>2016-08-06 12:08:13 +0200
commit3d51b1d5441d41aace4a37142eba3e8855ad69c2 (patch)
tree3f664c67ccf81f483f391a4102d3f6f1bb0e0614 /ext/mssql/php_mssql.c
parent5e2b8349b4ee7df1aa70deb4351f4f0d5c3d8a84 (diff)
downloadphp-git-3d51b1d5441d41aace4a37142eba3e8855ad69c2.tar.gz
Fix the fix (Nikita), thanks!
Diffstat (limited to 'ext/mssql/php_mssql.c')
-rw-r--r--ext/mssql/php_mssql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index 20ac190e0a..66497f1f51 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -2235,7 +2235,7 @@ PHP_FUNCTION(mssql_guid_string)
char *binary;
int binary_len;
zend_bool sf = 0;
- char buffer[32+1] = NULL;
+ char buffer[32+1] = { 0 };
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &binary, &binary_len, &sf) == FAILURE) {
return;
@@ -2251,7 +2251,7 @@ PHP_FUNCTION(mssql_guid_string)
RETURN_STRING(buffer, 1);
} else {
int i;
- char buffer2[36+1] = NULL;
+ char buffer2[36+1] = { 0 };
/* FIXME this works only on little endian machine */
for (i=0; i<4; i++) {