From: Antony Dovgal Date: Thu, 19 Oct 2006 10:01:54 +0000 (+0000) Subject: fix coverity issue #262 (uninitialized variable) X-Git-Tag: RELEASE_1_0_0RC1~1250 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05da0efe36c4337a1b2fa875d03f4f39913c9013;p=php fix coverity issue #262 (uninitialized variable) --- diff --git a/ext/json/json.c b/ext/json/json.c index b57129b1e0..6f4571241d 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -439,6 +439,7 @@ PHP_FUNCTION(json_decode) if (str_type == IS_UNICODE) { utf16 = str.u; + utf16_len = str_len; } else { utf16 = (unsigned short *) emalloc((str_len+1) * sizeof(unsigned short));