summaryrefslogtreecommitdiffstats
path: root/src/network/test-networkd-conf.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-11-12 07:24:11 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-11-12 08:32:11 +0100
commit3e5700428e768438bb1083e004be23201ede4e08 (patch)
treeca5bae7b03fe762e2c78c82b45140651c2a1c1b6 /src/network/test-networkd-conf.c
parentnetwork: do not assign unused value (diff)
downloadsystemd-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.c1
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) {