Revert "varlink: initialize Varlink with 0"

This reverts commit 8688c29b5a, but leaves the
reproducer. Structured assignment should be enough to fully initialize the
variable and new0 is not necessary.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-05-30 19:39:05 +02:00
parent 2a04712c19
commit a48481dc77

View file

@ -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;