portablectl: coccinelle says we should use TAKE_PTR() here, do so

This commit is contained in:
Lennart Poettering
2018-05-31 12:05:20 +02:00
parent 669fc4e5c5
commit 810aa42575
+1 -2
View File
@@ -104,8 +104,7 @@ static int extract_prefix(const char *path, char **ret) {
if (!filename_is_valid(name))
return -EINVAL;
*ret = name;
name = NULL;
*ret = TAKE_PTR(name);
return 0;
}