diff options
author | Omar Polo <op@omarpolo.com> | 2024-01-21 12:53:01 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2024-01-21 12:53:01 +0000 |
commit | 2a822b03ba21a85012e996136836519dd79c2aa6 (patch) | |
tree | 8ea5839647ba155b3c5c340c523ec190a377ec30 /logger.c | |
parent | 3f16db6263fe5bab588bd1b7347f5d2ddc7d6059 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |