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
This commit is contained in:
Omar Polo 2024-01-21 12:53:01 +00:00
parent 3f16db6263
commit 2a822b03ba
1 changed files with 1 additions and 1 deletions

View File

@ -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) {