From: Jérémie Astor Date: Mon, 30 Aug 2021 10:49:21 +0000 (+0200) Subject: :bug: Fix emit_prim_str X-Git-Tag: nightly~470^2~35 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=e5dd70304ae8cadd03ab819451150e147187e709;p=gwion.git :bug: Fix emit_prim_str --- 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);