portablectl: coccinelle says we should use TAKE_PTR() here, do so
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user