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
@@ -504,7 +504,7 @@ static int loop_device_make_internal(
* the underlying block device. */
r = blockdev_get_sector_size(fd, &sector_size);
else {
_cleanup_close_ int non_direct_io_fd = -1;
_cleanup_close_ int non_direct_io_fd = -EBADF;
int probe_fd;
assert(S_ISREG(st.st_mode));