Skip to content

Commit

Permalink
Add assertions in check_permission (#4334)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dante-Broggi committed Mar 22, 2023
1 parent ca5b729 commit 6a7c59b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libponyc/pass/syntax.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ static bool check_permission(pass_opt_t* opt, const permission_def_t* def,
int element, ast_t* actual, const char* context, ast_t* report_at)
{
pony_assert(def != NULL);
pony_assert(def->permissions != NULL);
pony_assert(def->desc != NULL);
pony_assert(actual != NULL);
pony_assert(context != NULL);

Expand Down

0 comments on commit 6a7c59b

Please sign in to comment.