diff options
author | Susant Sahani <ssahani@vmware.com> | 2021-01-17 10:31:30 +0100 |
---|---|---|
committer | Susant Sahani <ssahani@vmware.com> | 2021-01-17 14:25:21 +0100 |
commit | a4aba097adb97b278daed4b8337270b819f91789 (patch) | |
tree | dd656a1113999bc3143c0476c13b656e7241adc5 /src/udev/udevadm-monitor.c | |
parent | udevadm-monitor: Use hashmap_ensure_put (diff) | |
download | systemd-a4aba097adb97b278daed4b8337270b819f91789.tar.xz systemd-a4aba097adb97b278daed4b8337270b819f91789.zip |
udevadm-monitor: use TAKE_PTR
Diffstat (limited to '')
-rw-r--r-- | src/udev/udevadm-monitor.c | 3 |
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': |