summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/stream.c b/stream.c
index 88ea5b49..3e71b53e 100644
--- a/stream.c
+++ b/stream.c
@@ -1019,9 +1019,8 @@ val vformat_to_string(val fmtstr, va_list vl)
val format(val stream, val str, ...)
{
val st = or2(stream, make_string_output_stream());
- type_check (stream, COBJ);
- type_assert (stream->co.cls == stream_s, (lit("~a is not a stream"),
- stream, nao));
+ type_check (st, COBJ);
+ type_assert (st->co.cls == stream_s, (lit("~a is not a stream"), st, nao));
{
va_list vl;