Skip to content

Commit

Permalink
init contentJson when no json exists (crashfix)
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Oct 4, 2023
1 parent 9dfaf8b commit ed8c3a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ tonie_info_t *getTonieInfo(const char *contentPath, settings_t *settings)
tonieInfo->tafHeader = NULL;
tonieInfo->contentPath = strdup(contentPath);
tonieInfo->exists = fsFileExists(contentPath);
osMemset(&tonieInfo->json, 0, sizeof(contentJson_t));

if (osStrstr(contentPath, ".json") == NULL)
{
Expand Down

0 comments on commit ed8c3a8

Please sign in to comment.