mirror of
https://github.com/systemd/systemd.git
synced 2025-02-10 17:57:40 +03:00
Revert "varlink: initialize Varlink with 0"
This reverts commit 8688c29b5aece49805a244676cba5bba0196f509, but leaves the reproducer. Structured assignment should be enough to fully initialize the variable and new0 is not necessary.
This commit is contained in:
parent
2a04712c19
commit
a48481dc77
@ -246,8 +246,7 @@ static int varlink_new(Varlink **ret) {
|
||||
|
||||
assert(ret);
|
||||
|
||||
/* Here use new0 as the below structured initializer is nested. */
|
||||
v = new0(Varlink, 1);
|
||||
v = new(Varlink, 1);
|
||||
if (!v)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user