com php-src: Fix the fix (Nikita), thanks!: ext/mssql/php_mss ql.c

From: Date: Sat, 06 Aug 2016 10:08:13 +0000
Subject: com php-src: Fix the fix (Nikita), thanks!: ext/mssql/php_mss ql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-93642@lists.php.net to get a copy of this message
Commit: 3d51b1d5441d41aace4a37142eba3e8855ad69c2 Author: Kalle Sommer Nielsen <kalle@php.net> Sat, 6 Aug 2016 12:08:13 +0200 Parents: 5e2b8349b4ee7df1aa70deb4351f4f0d5c3d8a84 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3d51b1d5441d41aace4a37142eba3e8855ad69c2 Log: Fix the fix (Nikita), thanks! Changed paths: M ext/mssql/php_mssql.c Diff: diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index 20ac190..66497f1 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++) {

« previous php.cvs (#93642) next »