From: Michael Tremer Date: Mon, 20 Oct 2025 13:24:51 +0000 (+0000) Subject: file: There is no need to attempt to parse empty lines X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed3e1e4231cbdf5cbedefe050e38bcbe5ee9e4cf;p=telemetry.git file: There is no need to attempt to parse empty lines Signed-off-by: Michael Tremer --- diff --git a/src/daemon/file.c b/src/daemon/file.c index 5880daf..89b0280 100644 --- a/src/daemon/file.c +++ b/src/daemon/file.c @@ -250,6 +250,10 @@ static int __td_file_parse(td_ctx* ctx, td_file* self, td_file_parser* parser = data; int r; + // Skip processing empty lines + if (!length) + return 0; + #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wformat-nonliteral"