Skip to content

Commit 0f4091e

Browse files
authored
The module_str parameter of open_resource_type has to be NULL (#312)
As documented in https://www.erlang.org/doc/apps/erts/erl_nif#enif_open_resource_type This only leads to problems in debug builds as the value is currently guarded by an assertion.
1 parent d954e91 commit 0f4091e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c_src/sqlite3_nif.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ on_load(ErlNifEnv* env, void** priv, ERL_NIF_TERM info)
990990

991991
connection_type = enif_open_resource_type(
992992
env,
993-
"exqlite",
993+
NULL,
994994
"connection_type",
995995
connection_type_destructor,
996996
ERL_NIF_RT_CREATE,
@@ -1001,7 +1001,7 @@ on_load(ErlNifEnv* env, void** priv, ERL_NIF_TERM info)
10011001

10021002
statement_type = enif_open_resource_type(
10031003
env,
1004-
"exqlite",
1004+
NULL,
10051005
"statement_type",
10061006
statement_type_destructor,
10071007
ERL_NIF_RT_CREATE,

0 commit comments

Comments
 (0)