Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/libcrun/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -4989,7 +4989,10 @@ libcrun_container_add_or_remove_mounts_from_file (libcrun_context_t *context, co
return ret;

if (! YAJL_IS_ARRAY (tree))
return crun_make_error (err, 0, "mounts must be an array");
{
ret = crun_make_error (err, 0, "mounts must be an array");
goto cleanup;
}
else
{
values = YAJL_GET_ARRAY (tree)->values;
Expand Down