]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libsystemd/sd-daemon/sd-daemon.c
macro: introduce TAKE_PTR() macro
[thirdparty/systemd.git] / src / libsystemd / sd-daemon / sd-daemon.c
index 1334498ca41eede059513874375f9209214c62bd..0da0ca5890a249b858f3a752927bc1f9654b7bb4 100644 (file)
@@ -141,8 +141,7 @@ _public_ int sd_listen_fds_with_names(int unset_environment, char ***names) {
                         return r;
         }
 
-        *names = l;
-        l = NULL;
+        *names = TAKE_PTR(l);
 
         return n_fds;
 }