From a35d11067477ed1581380fb58a92ed5fb9e4787d Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Sun, 11 Feb 2024 14:16:50 +0100 Subject: [PATCH] fmt/text2pcap: fix coverity return value warning (#1070) --- src/fmt/text2pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmt/text2pcap.c b/src/fmt/text2pcap.c index d131323fa..eec2814f8 100644 --- a/src/fmt/text2pcap.c +++ b/src/fmt/text2pcap.c @@ -38,7 +38,7 @@ void re_text2pcap_trace(const char *name, const char *id, bool in, if (!pcap_buf) return; - re_snprintf(pcap_buf, pcap_buf_sz, "%H", re_text2pcap, &pcap); + (void)re_snprintf(pcap_buf, pcap_buf_sz, "%H", re_text2pcap, &pcap); re_trace_event("pcap", name, 'I', NULL, RE_TRACE_ARG_STRING_COPY, "pcap", pcap_buf);