From 05da0efe36c4337a1b2fa875d03f4f39913c9013 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 19 Oct 2006 10:01:54 +0000 Subject: [PATCH] fix coverity issue #262 (uninitialized variable) --- ext/json/json.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/json/json.c b/ext/json/json.c index b57129b1e07..6f4571241d1 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));