projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9fbcf2
)
filehash: check for NULL ->file_name in hash lookup
author
Jens Axboe
<jens.axboe@oracle.com>
Wed, 10 Sep 2008 07:07:55 +0000
(09:07 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 10 Sep 2008 07:07:55 +0000
(09:07 +0200)
Original patch from Shaozhi Shawn Ye <yeshao@google.com>, modified
by me to continue the lookup and just skip the file instead of
returning NULL.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filehash.c
patch
|
blob
|
blame
|
history
diff --git
a/filehash.c
b/filehash.c
index a00ac7885721c60b839f0b6c26144f6355b065a9..dab60fe32e88d0e45e729335c0027c8cdb9e2317 100644
(file)
--- a/
filehash.c
+++ b/
filehash.c
@@
-39,6
+39,9
@@
static struct fio_file *__lookup_file_hash(const char *name)
flist_for_each(n, bucket) {
struct fio_file *f = flist_entry(n, struct fio_file, hash_list);
+ if (!f->file_name)
+ continue;
+
if (!strcmp(f->file_name, name)) {
assert(f->fd != -1);
return f;