summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-device/device-monitor.c
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@vmware.com>2021-01-20 13:54:59 +0100
committerSusant Sahani <ssahani@vmware.com>2021-01-20 15:13:13 +0100
commit639deab187265d9e7c3efd44646f288ae809cefe (patch)
treec0ce1869b0fae40bcaf472bb6ede08bf466b8a6d /src/libsystemd/sd-device/device-monitor.c
parentsd-device: Use hashmap_ensure_put (diff)
downloadsystemd-639deab187265d9e7c3efd44646f288ae809cefe.tar.xz
systemd-639deab187265d9e7c3efd44646f288ae809cefe.zip
sd-device: Use TAKE_PTR
Diffstat (limited to '')
-rw-r--r--src/libsystemd/sd-device/device-monitor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsystemd/sd-device/device-monitor.c b/src/libsystemd/sd-device/device-monitor.c
index 72f04ee352..48f3c707e3 100644
--- a/src/libsystemd/sd-device/device-monitor.c
+++ b/src/libsystemd/sd-device/device-monitor.c
@@ -736,7 +736,9 @@ _public_ int sd_device_monitor_filter_add_match_subsystem_devtype(sd_device_moni
if (r < 0)
return r;
- s = d = NULL;
+ TAKE_PTR(s);
+ TAKE_PTR(d);
+
m->filter_uptodate = false;
return 0;