From e5dd70304ae8cadd03ab819451150e147187e709 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 30 Aug 2021 12:49:21 +0200 Subject: [PATCH] :bug: Fix emit_prim_str --- src/emit/emit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index 818df36e..b02a6b01 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -720,8 +720,7 @@ ANN static m_bool emit_prim_str(const Emitter emit, const struct AstString *str) char c[sz + 1]; if (sz) { strcpy(c, str->data); - CHECK_BB(escape_str(emit, c, prim_pos(str->data))); - ; + CHECK_BB(escape_str(emit, c, prim_pos(str))); } else c[0] = '\0'; v->d.obj = new_string2(emit->gwion, NULL, c); -- 2.43.0