mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
* fileobject.c (softspace): fix bug if called with NULL file.
This commit is contained in:
parent
c70b61fe6d
commit
82d410e733
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue