Skip to content

Commit

Permalink
Remove NULL pointer from PyCapsule_New
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity committed Jun 24, 2024
1 parent b915828 commit 191e17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/vendor.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pyawaitable_vendor_init(PyObject *mod)
PYAWAITABLE_ADD_TYPE(mod, _PyAwaitableGenWrapperType);

PyObject *capsule = PyCapsule_New(
NULL,
pyawaitable_vendor_init, // Any pointer, except NULL
"_pyawaitable.__do_not_touch",
close_pool
);
Expand Down

0 comments on commit 191e17c

Please sign in to comment.