diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c index 70d0fcad4d..924ea4936e 100644 --- a/src/journal-remote/journal-upload.c +++ b/src/journal-remote/journal-upload.c @@ -406,8 +406,9 @@ static int setup_uploader(Uploader *u, const char *url, const char *state_file) assert(u); assert(url); - memzero(u, sizeof(Uploader)); - u->input = -1; + *u = (Uploader) { + .input = -1 + }; host = STARTSWITH_SET(url, "http://", "https://"); if (!host) {