Skip to content

Commit

Permalink
Update c_src/sqlite3_nif.c
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Johnston <warmwaffles@gmail.com>
  • Loading branch information
ruslandoga and warmwaffles authored Oct 14, 2024
1 parent 530faf6 commit c23604f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c_src/sqlite3_nif.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,9 @@ exqlite_insert_all(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
}

int type;
if (!enif_get_int(env, head, &type))
if (!enif_get_int(env, head, &type)) {
return raise_badarg(env, types);
}

types_array[i] = type;
types = tail;
Expand Down

0 comments on commit c23604f

Please sign in to comment.