X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/f5e91c02ff4057002e480ad4933a1b9aa2496c40..ea932d59b3071ce00f9e510aad014ad64a3dc48c:/cc-hash.c diff --git a/cc-hash.c b/cc-hash.c index 00dcb39..64fea0e 100644 --- a/cc-hash.c +++ b/cc-hash.c @@ -298,7 +298,7 @@ int fhash(fhashstate *fh, const char *file, void *buf) return (-1); if (fh->f & FHF_PROGRESS) { - if (fprogress_init(&ff, file, fp)) return (-1); + if (fprogress_init(&ff, file ? file : "", fp)) return (-1); } if (fh->f & FHF_JUNK) {