X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=filehash.c;h=dab60fe32e88d0e45e729335c0027c8cdb9e2317;hp=a00ac7885721c60b839f0b6c26144f6355b065a9;hb=f484470bf1df771bed64dc9f85b516ad4b7634bb;hpb=b950781e189961b934c5a26372ae4ec5fd384799 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;