diff options
| author | Guido van Rossum <guido@python.org> | 1997-05-22 14:02:25 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1997-05-22 14:02:25 +0000 |
| commit | e9eec547980ee773b11df708898c0f65d7fc905c (patch) | |
| tree | a14ea5357c24fccbb18effd4189c1a25eb9932bf /Objects | |
| parent | 74427e51d702a511849267c6a179ef4d93838760 (diff) | |
| download | cpython-git-e9eec547980ee773b11df708898c0f65d7fc905c.tar.gz | |
Fix typo in error checking spotted by Just...
Diffstat (limited to 'Objects')
| -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 257702fbea..1d85e20e55 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; |
