Fix typo in error checking spotted by Just...

This commit is contained in:
Guido van Rossum 1997-05-22 14:02:25 +00:00
parent 74427e51d7
commit e9eec54798

View File

@ -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;