mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37: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 ']':
|
||||
|
||||
if (top->type == json_array)
|
||||
if (top && top->type == json_array)
|
||||
flags = (flags & ~ (flag_need_comma | flag_seek_value)) | flag_next;
|
||||
else
|
||||
{ sprintf (error, "%d:%d: Unexpected ]", cur_line, e_off);
|
||||
|
|
Loading…
Add table
Reference in a new issue