We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8fe284 commit 0c243f6Copy full SHA for 0c243f6
extern/load_module.c
@@ -19,7 +19,7 @@ static PyObject* p11_error() {
19
LocalFree(msgbuffer);
20
return errmsg;
21
} else {
22
- return NULL;
+ Py_RETURN_NONE;
23
}
24
25
@@ -57,7 +57,7 @@ static PyObject* p11_error() {
57
char* error = dlerror();
58
59
if (error == NULL) {
60
61
62
int len = strlen(error);
63
PyObject* result = PyUnicode_DecodeUTF8(error, len, NULL);
0 commit comments