From: Mark Wooding Date: Wed, 9 Jan 2013 03:56:20 +0000 (+0000) Subject: cc-hash.c (fhash): The FILE name may be null. X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/95ccefe3ce59a0773f915aca6948d5b6f1f7c882 cc-hash.c (fhash): The FILE name may be null. So pass a dummy string on for the progress indicator. --- 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) {