summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/out.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/c/gu/out.c')
-rw-r--r--src/runtime/c/gu/out.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/runtime/c/gu/out.c b/src/runtime/c/gu/out.c
index 61df2c184..ab937c4a7 100644
--- a/src/runtime/c/gu/out.c
+++ b/src/runtime/c/gu/out.c
@@ -236,12 +236,13 @@ gu_proxy_out_flush(GuOutStream* self, GuExn* err)
GuOutStream*
gu_out_proxy_stream(GuOut* out, GuPool* pool)
{
- return &gu_new_s(pool, GuProxyOutStream,
- .stream.begin_buf = gu_proxy_out_buf_begin,
- .stream.end_buf = gu_proxy_out_buf_end,
- .stream.output = gu_proxy_out_output,
- .stream.flush = gu_proxy_out_flush,
- .real_out = out)->stream;
+ GuProxyOutStream* pos = gu_new(GuProxyOutStream, pool);
+ pos->stream.begin_buf = gu_proxy_out_buf_begin;
+ pos->stream.end_buf = gu_proxy_out_buf_end;
+ pos->stream.output = gu_proxy_out_output;
+ pos->stream.flush = gu_proxy_out_flush;
+ pos->real_out = out;
+ return &pos->stream;
}