]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udevadm-monitor: use TAKE_PTR 18286/head
authorSusant Sahani <ssahani@vmware.com>
Sun, 17 Jan 2021 09:31:30 +0000 (10:31 +0100)
committerSusant Sahani <ssahani@vmware.com>
Sun, 17 Jan 2021 13:25:21 +0000 (14:25 +0100)
src/udev/udevadm-monitor.c

index 740344606de2d80f6c465ea4842dc4c3cdfe97ca..64b1160d71a4a5270dbda1222cbbc01e0bd079de 100644 (file)
@@ -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':