tree-wide: use TAKE_PTR() and TAKE_FD() macros
This commit is contained in:
+1
-2
@@ -216,8 +216,7 @@ int khash_dup(khash *h, khash **ret) {
|
||||
if (copy->fd < 0)
|
||||
return -errno;
|
||||
|
||||
*ret = copy;
|
||||
copy = NULL;
|
||||
*ret = TAKE_PTR(copy);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user