* fileobject.c (softspace): fix bug if called with NULL file.

This commit is contained in:
Guido van Rossum 1993-11-01 16:26:16 +00:00
parent c70b61fe6d
commit 82d410e733

View file

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