From: Guido van Rossum Date: Mon, 1 Nov 1993 16:26:16 +0000 (+0000) Subject: * fileobject.c (softspace): fix bug if called with NULL file. X-Git-Tag: v1.0.1~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=82d410e73301f22a2e48c884d826eb772b1e89ef;p=thirdparty%2FPython%2Fcpython.git * fileobject.c (softspace): fix bug if called with NULL file. --- diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 5099f3f694ef..7ed4fcd08288 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -630,7 +630,7 @@ softspace(f, newflag) if (f == NULL) { /* Do nothing */ } - if (is_fileobject(f)) { + else if (is_fileobject(f)) { oldflag = ((fileobject *)f)->f_softspace; ((fileobject *)f)->f_softspace = newflag; }