projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Properly initialize shadow_fd to -1
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index db80a8b7e28ba2392de54eab64bf2fe1b693fbc6..fd55cc4b2bc4c98723194a3a655d420f82bb6c79 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-1421,6
+1421,7
@@
void dup_files(struct thread_data *td, struct thread_data *org)
assert(0);
}
__f->fd = -1;
assert(0);
}
__f->fd = -1;
+ __f->shadow_fd = -1;
fio_file_reset(td, __f);
if (f->file_name) {
fio_file_reset(td, __f);
if (f->file_name) {