aboutsummaryrefslogtreecommitdiff
path: root/logger.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-01-21 12:53:01 +0000
committerOmar Polo <op@omarpolo.com>2024-01-21 12:53:01 +0000
commit2a822b03ba21a85012e996136836519dd79c2aa6 (patch)
tree8ea5839647ba155b3c5c340c523ec190a377ec30 /logger.c
parent3f16db6263fe5bab588bd1b7347f5d2ddc7d6059 (diff)
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
Diffstat (limited to 'logger.c')
-rw-r--r--logger.c2
1 files changed, 1 insertions, 1 deletions
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) {