projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a04712
)
Revert "varlink: initialize Varlink with 0"
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 30 May 2019 17:39:05 +0000
(19:39 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 30 May 2019 17:39:27 +0000
(19:39 +0200)
This reverts commit
8688c29b5aece49805a244676cba5bba0196f509
, but leaves the
reproducer. Structured assignment should be enough to fully initialize the
variable and new0 is not necessary.
src/shared/varlink.c
patch
|
blob
|
history
diff --git
a/src/shared/varlink.c
b/src/shared/varlink.c
index
4544284
..
48e18b0
100644
(file)
--- a/
src/shared/varlink.c
+++ b/
src/shared/varlink.c
@@
-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;