diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-12 07:24:11 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-12 08:32:11 +0100 |
commit | 3e5700428e768438bb1083e004be23201ede4e08 (patch) | |
tree | ca5bae7b03fe762e2c78c82b45140651c2a1c1b6 /src/network/test-networkd-conf.c | |
parent | network: do not assign unused value (diff) | |
download | systemd-3e5700428e768438bb1083e004be23201ede4e08.tar.xz systemd-3e5700428e768438bb1083e004be23201ede4e08.zip |
network: allocate hashmap objects when they are required
Diffstat (limited to 'src/network/test-networkd-conf.c')
-rw-r--r-- | src/network/test-networkd-conf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/network/test-networkd-conf.c b/src/network/test-networkd-conf.c index abef6e761a..86d4e7e733 100644 --- a/src/network/test-networkd-conf.c +++ b/src/network/test-networkd-conf.c @@ -172,7 +172,6 @@ static void test_config_parse_address_one(const char *rvalue, int family, unsign _cleanup_(network_freep) Network *network = NULL; assert_se(network = new0(Network, 1)); - assert_se(network->addresses_by_section = hashmap_new(NULL)); assert_se(config_parse_address("network", "filename", 1, "section", 1, "Address", 0, rvalue, network, network) == 0); assert_se(network->n_static_addresses == n_addresses); if (n_addresses > 0) { |