Skip to content

Commit

Permalink
add check for parse error in TRAKINFO
Browse files Browse the repository at this point in the history
  • Loading branch information
rfomin committed Jan 16, 2025
1 parent fadd2ee commit e19b4ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/s_trakinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ static trakinfo_t *trakinfo;
void S_ParseTrakInfo(int lumpnum)
{
json_t *json = JS_OpenOptions(lumpnum, true);
if (!json)
{
return;
}

json_obj_iter_t *iter = JS_ObjectIterator(json);

Expand Down

0 comments on commit e19b4ce

Please sign in to comment.