summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/fileobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 257702f..1d85e20 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -982,7 +982,7 @@ PyFile_WriteObject(v, f, flags)
return -1;
}
args = Py_BuildValue("(O)", value);
- if (value == NULL) {
+ if (args == NULL) {
Py_DECREF(value);
Py_DECREF(writer);
return -1;