Commit fac159ec127080ab457b009f90ea29db57cb2b30

Thomas de Grivel 2024-03-23T08:15:59

allow empty buf

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/libc3/buf.c b/libc3/buf.c
index 36e848b..0d3b36b 100644
--- a/libc3/buf.c
+++ b/libc3/buf.c
@@ -184,7 +184,6 @@ s_buf * buf_init (s_buf *buf, bool p_free, uw size, char *p)
 {
   s_buf tmp = {0};
   assert(buf);
-  assert(p);
   tmp.free = p_free;
   tmp.line = -1;
   tmp.ptr.pchar = p;