mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
simple-format: Don't assume the current output port is valid.
* libguile/print.c (scm_simple_format): Validate the current output port.
This commit is contained in:
parent
2be7131ee0
commit
e26ab067b2
1 changed files with 1 additions and 0 deletions
|
@ -1468,6 +1468,7 @@ SCM_DEFINE (scm_simple_format, "simple-format", 2, 0, 1,
|
|||
if (scm_is_eq (destination, SCM_BOOL_T))
|
||||
{
|
||||
destination = port = scm_current_output_port ();
|
||||
SCM_VALIDATE_OPORT_VALUE (0, destination);
|
||||
}
|
||||
else if (scm_is_false (destination))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue