sd-radv: use structured initializer at one more place

This commit is contained in:
Yu Watanabe 2018-11-13 14:28:16 +09:00
parent 6ec11d46dc
commit 78f9d24f7b
1 changed files with 5 additions and 5 deletions

View File

@ -27,14 +27,14 @@ _public_ int sd_radv_new(sd_radv **ret) {
assert_return(ret, -EINVAL);
ra = new0(sd_radv, 1);
ra = new(sd_radv, 1);
if (!ra)
return -ENOMEM;
ra->n_ref = 1;
ra->fd = -1;
LIST_HEAD_INIT(ra->prefixes);
*ra = (sd_radv) {
.n_ref = 1,
.fd = -1,
};
*ret = TAKE_PTR(ra);