summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-22 14:02:25 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-22 14:02:25 (GMT)
commite9eec547980ee773b11df708898c0f65d7fc905c (patch)
treea14ea5357c24fccbb18effd4189c1a25eb9932bf /Objects
parent74427e51d702a511849267c6a179ef4d93838760 (diff)
downloadcpython-e9eec547980ee773b11df708898c0f65d7fc905c.zip
cpython-e9eec547980ee773b11df708898c0f65d7fc905c.tar.gz
cpython-e9eec547980ee773b11df708898c0f65d7fc905c.tar.bz2
Fix typo in error checking spotted by Just...
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;