mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
fix coverity issue #262 (uninitialized variable)
This commit is contained in:
parent
d73bf1d322
commit
05da0efe36
@ -439,6 +439,7 @@ PHP_FUNCTION(json_decode)
|
|||||||
|
|
||||||
if (str_type == IS_UNICODE) {
|
if (str_type == IS_UNICODE) {
|
||||||
utf16 = str.u;
|
utf16 = str.u;
|
||||||
|
utf16_len = str_len;
|
||||||
} else {
|
} else {
|
||||||
utf16 = (unsigned short *) emalloc((str_len+1) * sizeof(unsigned short));
|
utf16 = (unsigned short *) emalloc((str_len+1) * sizeof(unsigned short));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user