diff options
author | Susant Sahani <ssahani@vmware.com> | 2021-01-20 13:54:59 +0100 |
---|---|---|
committer | Susant Sahani <ssahani@vmware.com> | 2021-01-20 15:13:13 +0100 |
commit | 639deab187265d9e7c3efd44646f288ae809cefe (patch) | |
tree | c0ce1869b0fae40bcaf472bb6ede08bf466b8a6d /src/libsystemd/sd-device/device-monitor.c | |
parent | sd-device: Use hashmap_ensure_put (diff) | |
download | systemd-639deab187265d9e7c3efd44646f288ae809cefe.tar.xz systemd-639deab187265d9e7c3efd44646f288ae809cefe.zip |
sd-device: Use TAKE_PTR
Diffstat (limited to '')
-rw-r--r-- | src/libsystemd/sd-device/device-monitor.c | 4 |
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; |