From 2a822b03ba21a85012e996136836519dd79c2aa6 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Sun, 21 Jan 2024 12:53:01 +0000 Subject: please macos for some reason that's not entirely clear to me, __dead doesn't seem to work on macos, so clang thinks datalen is used un-initialized. meh --- logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'logger.c') diff --git a/logger.c b/logger.c index 97adec6..1398686 100644 --- a/logger.c +++ b/logger.c @@ -105,7 +105,7 @@ static int logger_dispatch_server(int fd, struct privsep_proc *p, struct imsg *imsg) { char *msg; - size_t datalen; + size_t datalen = 0; struct ibuf ibuf; switch (imsg->hdr.type) { -- cgit v1.2.3