summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-dns-packet.c
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@vmware.com>2021-01-17 10:20:22 +0100
committerSusant Sahani <ssahani@vmware.com>2021-01-17 14:25:05 +0100
commitdaced7483b54d9166080343efa52c2f38997c83c (patch)
tree305afff5a8947b74654e319b44bc555477b46d39 /src/resolve/resolved-dns-packet.c
parentresolved-dns-packet: Use hashmap_ensure_put (diff)
downloadsystemd-daced7483b54d9166080343efa52c2f38997c83c.tar.xz
systemd-daced7483b54d9166080343efa52c2f38997c83c.zip
resolved-dns-packet: Use TAKE_PTR
Diffstat (limited to 'src/resolve/resolved-dns-packet.c')
-rw-r--r--src/resolve/resolved-dns-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c
index 704ac56a7c..9a0e2d5161 100644
--- a/src/resolve/resolved-dns-packet.c
+++ b/src/resolve/resolved-dns-packet.c
@@ -561,7 +561,7 @@ int dns_packet_append_name(
if (r < 0)
goto fail;
- s = NULL;
+ TAKE_PTR(s);
}
}