diff --git a/libkc3/buf.c b/libkc3/buf.c
index ead3d77..63a09db 100644
--- a/libkc3/buf.c
+++ b/libkc3/buf.c
@@ -162,8 +162,6 @@ sw buf_ignore_spaces (s_buf *buf)
if ((r = buf_ignore(buf, csize)) < 0)
return r;
result += csize;
- if (c == '\n')
- buf->line++;
}
if (! result && r < 0)
return r;