summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/c/gu/string.c')
-rw-r--r--src/runtime/c/gu/string.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/runtime/c/gu/string.c b/src/runtime/c/gu/string.c
index 6f91e0a27..1a53c3a28 100644
--- a/src/runtime/c/gu/string.c
+++ b/src/runtime/c/gu/string.c
@@ -20,9 +20,10 @@ gu_string_buf(GuPool* pool)
GuBuf* buf = gu_new_buf(uint8_t, pool);
GuOut* out = gu_buf_out(buf, pool);
GuWriter* wtr = gu_new_utf8_writer(out, pool);
- return gu_new_s(pool, GuStringBuf,
- .bbuf = buf,
- .wtr = wtr);
+ GuStringBuf* sbuf = gu_new(GuStringBuf, pool);
+ sbuf->bbuf = buf;
+ sbuf->wtr = wtr;
+ return sbuf;
}
GuWriter*