summaryrefslogtreecommitdiffstats
path: root/Modules/_xxsubinterpretersmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_xxsubinterpretersmodule.c')
-rw-r--r--Modules/_xxsubinterpretersmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_xxsubinterpretersmodule.c b/Modules/_xxsubinterpretersmodule.c
index 6162c53..7b2cda2 100644
--- a/Modules/_xxsubinterpretersmodule.c
+++ b/Modules/_xxsubinterpretersmodule.c
@@ -15,7 +15,7 @@ _copy_raw_string(PyObject *strobj)
return NULL;
}
char *copied = PyMem_Malloc(strlen(str)+1);
- if (str == NULL) {
+ if (copied == NULL) {
PyErr_NoMemory();
return NULL;
}