1
Fork 0
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:
Mark H Weaver 2014-03-19 17:55:20 -04:00
parent 2be7131ee0
commit e26ab067b2

View file

@ -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))
{