From: Guido van Rossum Date: Thu, 22 May 1997 14:02:25 +0000 (+0000) Subject: Fix typo in error checking spotted by Just... X-Git-Tag: v1.5a3~496 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9eec547980ee773b11df708898c0f65d7fc905c;p=python Fix typo in error checking spotted by Just... --- 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;