tony2001 Thu Oct 19 10:01:55 2006 UTC
Modified files:
/php-src/ext/json json.c
Log:
fix coverity issue #262 (uninitialized variable)
http://cvs.php.net/viewvc.cgi/php-src/ext/json/json.c?r1=1.16&r2=1.17&diff_format=u
Index: php-src/ext/json/json.c
diff -u php-src/ext/json/json.c:1.16 php-src/ext/json/json.c:1.17
--- php-src/ext/json/json.c:1.16 Tue Oct 17 17:56:54 2006
+++ php-src/ext/json/json.c Thu Oct 19 10:01:54 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: json.c,v 1.16 2006/10/17 17:56:54 andrei Exp $ */
+/* $Id: json.c,v 1.17 2006/10/19 10:01:54 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -439,6 +439,7 @@
if (str_type == IS_UNICODE) {
utf16 = str.u;
+ utf16_len = str_len;
} else {
utf16 = (unsigned short *) emalloc((str_len+1) *
sizeof(unsigned short));
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php