mirror of
https://github.com/systemd/systemd.git
synced 2025-01-23 02:04:32 +03:00
journal-upload: use static initialization
This commit is contained in:
parent
15d121b0e2
commit
b48a0e0956
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user