diff options
author | Guido van Rossum <guido@python.org> | 1997-05-22 14:02:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-22 14:02:25 (GMT) |
commit | e9eec547980ee773b11df708898c0f65d7fc905c (patch) | |
tree | a14ea5357c24fccbb18effd4189c1a25eb9932bf | |
parent | 74427e51d702a511849267c6a179ef4d93838760 (diff) | |
download | cpython-e9eec547980ee773b11df708898c0f65d7fc905c.zip cpython-e9eec547980ee773b11df708898c0f65d7fc905c.tar.gz cpython-e9eec547980ee773b11df708898c0f65d7fc905c.tar.bz2 |
Fix typo in error checking spotted by Just...
-rw-r--r-- | Objects/fileobject.c | 2 |
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; |