diff --git a/lib/fetch/file.c b/lib/fetch/file.c index 14640bed..9def4ee3 100644 --- a/lib/fetch/file.c +++ b/lib/fetch/file.c @@ -210,6 +210,11 @@ fetchStatFile(struct url *u, struct url_stat *us, const char *flags) (void)flags; + if (us == NULL) { + fetch_syserr(); + return -1; + } + if ((path = fetchUnquotePath(u)) == NULL) { fetch_syserr(); return -1;