Commit b418b10fcdd73092e5d50736a403af47fb03e4df

Thomas de Grivel 2024-03-01T16:20:27

wip asan

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/libc3/buf_parse.c b/libc3/buf_parse.c
index 5d1cc40..560c386 100644
--- a/libc3/buf_parse.c
+++ b/libc3/buf_parse.c
@@ -2714,9 +2714,8 @@ sw buf_parse_ratio (s_buf *buf, s_ratio *dest)
   sw r;
   sw result = 0;
   s_buf_save save;
-  s_ratio tmp;
+  s_ratio tmp = {0};
   buf_save_init(buf, &save);
-  ratio_init(&tmp);
   if ((r = buf_parse_integer(buf, &tmp.numerator)) <= 0)
     goto clean;
   result += r;