summaryrefslogtreecommitdiffstats
path: root/src/udev/udevadm-monitor.c
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@vmware.com>2021-01-17 10:31:30 +0100
committerSusant Sahani <ssahani@vmware.com>2021-01-17 14:25:21 +0100
commita4aba097adb97b278daed4b8337270b819f91789 (patch)
treedd656a1113999bc3143c0476c13b656e7241adc5 /src/udev/udevadm-monitor.c
parentudevadm-monitor: Use hashmap_ensure_put (diff)
downloadsystemd-a4aba097adb97b278daed4b8337270b819f91789.tar.xz
systemd-a4aba097adb97b278daed4b8337270b819f91789.zip
udevadm-monitor: use TAKE_PTR
Diffstat (limited to '')
-rw-r--r--src/udev/udevadm-monitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udev/udevadm-monitor.c b/src/udev/udevadm-monitor.c
index 740344606d..64b1160d71 100644
--- a/src/udev/udevadm-monitor.c
+++ b/src/udev/udevadm-monitor.c
@@ -161,7 +161,8 @@ static int parse_argv(int argc, char *argv[]) {
if (r < 0)
return r;
- subsystem = devtype = NULL;
+ TAKE_PTR(subsystem);
+ TAKE_PTR(devtype);
break;
}
case 't':