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…
Reference in New Issue