fix coverity issue #262 (uninitialized variable)

This commit is contained in:
Antony Dovgal 2006-10-19 10:01:54 +00:00
parent d73bf1d322
commit 05da0efe36

View File

@ -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));