commit | 82d410e73301f22a2e48c884d826eb772b1e89ef | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Nov 01 16:26:16 1993 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Nov 01 16:26:16 1993 +0000 |
tree | 6745c8bac0591725c89497cb1640ef71866ebaff | |
parent | c70b61fe6d729ddebc536ec273d97f57fa47cd86 [diff] [blame] |
* fileobject.c (softspace): fix bug if called with NULL file.
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 5099f3f..7ed4fcd 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c
@@ -630,7 +630,7 @@ if (f == NULL) { /* Do nothing */ } - if (is_fileobject(f)) { + else if (is_fileobject(f)) { oldflag = ((fileobject *)f)->f_softspace; ((fileobject *)f)->f_softspace = newflag; }