Commit c1f191ac5fa2a3ff064356b10cb8721b03b1aba7

Thomas de Grivel 2024-08-02T12:35:11

silence buf_refill failures

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/libkc3/buf.c b/libkc3/buf.c
index 225cca0..8e4859d 100644
--- a/libkc3/buf.c
+++ b/libkc3/buf.c
@@ -932,11 +932,8 @@ sw buf_refill (s_buf *buf, sw size)
     }
     if (buf->refill)
       while (1) {
-        if ((r = buf->refill(buf)) < 0) {
-          err_puts("buf_refill: buf->refill");
-          assert(! "buf_refill: buf->refill");
+        if ((r = buf->refill(buf)) < 0)
           return r;
-        }
         if (! r)
           return -1;
         if (buf->wpos - buf->rpos >= (uw) size)