mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Crash when reading an empty 'manifest.json'.
This commit is contained in:
@@ -172,6 +172,10 @@ INLINE JSONObject* read_manifest(const char *lib, const char *manifest_data)
|
||||
{
|
||||
error_exit("Error on line %d reading '%s':'%s'", parser.line, lib, parser.error_message);
|
||||
}
|
||||
if (!json)
|
||||
{
|
||||
error_exit("Empty 'manifest.json' for library '%s'.", lib);
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user