From e9eec547980ee773b11df708898c0f65d7fc905c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 22 May 1997 14:02:25 +0000 Subject: Fix typo in error checking spotted by Just... --- Objects/fileobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12