]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/tmpfiles/tmpfiles.c
macro: introduce TAKE_PTR() macro
[thirdparty/systemd.git] / src / tmpfiles / tmpfiles.c
index f1890f326131da4fe3589d927b12f747a4a3c373..1794290ebe9e0497fec136d2f6c121b9326aca4d 100644 (file)
@@ -310,8 +310,7 @@ static int user_config_paths(char*** ret) {
         if (r < 0)
                 return r;
 
-        *ret = res;
-        res = NULL;
+        *ret = TAKE_PTR(res);
         return 0;
 }