summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@vmware.com>2021-01-18 21:11:31 +0100
committerSusant Sahani <ssahani@vmware.com>2021-01-18 21:11:31 +0100
commitb5b9b0e7ba73a4665e3275ed3f309ede68d1c5b4 (patch)
tree07bcaf24ac0150da1f2b4bdfbe1f153518e602fd
parentnetwork: network -- use ordered_hashmap_ensure_put (diff)
downloadsystemd-b5b9b0e7ba73a4665e3275ed3f309ede68d1c5b4.tar.xz
systemd-b5b9b0e7ba73a4665e3275ed3f309ede68d1c5b4.zip
network: Use TAKE_PTR
-rw-r--r--src/network/networkd-network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 927125e15a..97a5f1b0d1 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -503,7 +503,7 @@ int network_load_one(Manager *manager, OrderedHashmap **networks, const char *fi
if (r < 0)
return r;
- network = NULL;
+ TAKE_PTR(network);
return 0;
}