diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-04-17 15:30:48 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-04-24 07:44:42 +0200 |
commit | 41ab8c67ebfbbdc78cda473d81d392da912c17bc (patch) | |
tree | 17a5c1e1a37023f1c0b7b5d49c33d0e4989a9123 /src/libsystemd/sd-bus/bus-introspect.c | |
parent | 2efa5bc6fac6ab935941757993ca187de8d503fc (diff) | |
download | systemd-41ab8c67ebfbbdc78cda473d81d392da912c17bc.tar.gz |
tree-wide: use structured initialization at various places
Diffstat (limited to 'src/libsystemd/sd-bus/bus-introspect.c')
-rw-r--r-- | src/libsystemd/sd-bus/bus-introspect.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libsystemd/sd-bus/bus-introspect.c b/src/libsystemd/sd-bus/bus-introspect.c index e8934489b5..07bd98967d 100644 --- a/src/libsystemd/sd-bus/bus-introspect.c +++ b/src/libsystemd/sd-bus/bus-introspect.c @@ -13,8 +13,9 @@ int introspect_begin(struct introspect *i, bool trusted) { assert(i); - zero(*i); - i->trusted = trusted; + *i = (struct introspect) { + .trusted = trusted, + }; i->f = open_memstream_unlocked(&i->introspection, &i->size); if (!i->f) |