Merge pull request #26563 from dtardon/fd-init

Initialize fds with -EBADF + drop one unneeded initialization
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2023-02-23 11:43:09 +01:00
committed by GitHub
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -705,7 +705,7 @@ int chase_symlinks_and_unlink(
char **ret_path) {
_cleanup_free_ char *p = NULL, *rp = NULL, *dir = NULL, *fname = NULL;
_cleanup_close_ int fd = -1;
_cleanup_close_ int fd = -EBADF;
int r;
assert(path);