Skip to content

Commit

Permalink
Merge pull request #229 from freqlabs/master
Browse files Browse the repository at this point in the history
lua: Return early when init fails
  • Loading branch information
vstakhov committed Jul 1, 2020
2 parents e99322c + 0af751d commit 230f197
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lua_ucl.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ lua_ucl_parser_init (lua_State *L)
parser = ucl_parser_new (flags);
if (parser == NULL) {
lua_pushnil (L);
return 1;
}

pparser = lua_newuserdata (L, sizeof (parser));
Expand Down

0 comments on commit 230f197

Please sign in to comment.