journal-upload: use static initialization

This commit is contained in:
Lennart Poettering 2018-11-23 16:52:43 +01:00
parent 15d121b0e2
commit b48a0e0956
1 changed files with 3 additions and 2 deletions

View File

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