mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
stratum: null ptr check on json arrays
This commit is contained in:
parent
9a0aedfacd
commit
d200935198
1 changed files with 1 additions and 1 deletions
|
@ -503,7 +503,7 @@ json_value * json_parse_ex (json_settings * settings,
|
||||||
|
|
||||||
case ']':
|
case ']':
|
||||||
|
|
||||||
if (top->type == json_array)
|
if (top && top->type == json_array)
|
||||||
flags = (flags & ~ (flag_need_comma | flag_seek_value)) | flag_next;
|
flags = (flags & ~ (flag_need_comma | flag_seek_value)) | flag_next;
|
||||||
else
|
else
|
||||||
{ sprintf (error, "%d:%d: Unexpected ]", cur_line, e_off);
|
{ sprintf (error, "%d:%d: Unexpected ]", cur_line, e_off);
|
||||||
|
|
Loading…
Add table
Reference in a new issue