diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c index 504471fc8a..afa4e55edf 100644 --- a/src/journal-remote/journal-remote-main.c +++ b/src/journal-remote/journal-remote-main.c @@ -532,8 +532,9 @@ static int setup_microhttpd_server(RemoteServer *s, d = new(MHDDaemonWrapper, 1); if (!d) return log_oom(); - - d->fd = (uint64_t) fd; + *d = (MHDDaemonWrapper) { + .fd = (uint64_t) fd, + }; d->daemon = sym_MHD_start_daemon( flags,