path-util: Make ret argument optional for path_extract_directory()
This commit is contained in:
@@ -1116,7 +1116,9 @@ int path_extract_directory(const char *path, char **ret) {
|
||||
if (!path_is_valid(a))
|
||||
return -EINVAL;
|
||||
|
||||
*ret = TAKE_PTR(a);
|
||||
if (ret)
|
||||
*ret = TAKE_PTR(a);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user