X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filehash.c;h=dab60fe32e88d0e45e729335c0027c8cdb9e2317;hp=a00ac7885721c60b839f0b6c26144f6355b065a9;hb=8954110682922232b8bccfe2b7e734d04ce71b96;hpb=01743ee1718e7ec4b16ae3e53c8f64900c6052cc diff --git a/filehash.c b/filehash.c index a00ac788..dab60fe3 100644 --- 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;