Commit 3280b55e15b52730c012ee17f5bc697a2bf351cd

Thomas de Grivel 2023-03-12T18:34:52

buf_parse

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/libc3/buf_parse.c b/libc3/buf_parse.c
index 6aa44ce..b17b2d6 100644
--- a/libc3/buf_parse.c
+++ b/libc3/buf_parse.c
@@ -223,6 +223,7 @@ sw buf_parse_call_op_rec (s_buf *buf, s_call *dest, s_tag *left,
     if ((r = buf_ignore_spaces(buf)) < 0)
       goto restore;
     op = next_op;
+    right = tag_new();
     if ((r = buf_parse_tag_primary(buf, right)) <= 0)
       goto restore;
     result += r;