lib/fetch/file.c: CID 62701 (NULL pointer dereference)

This commit is contained in:
Juan RP 2014-10-07 11:02:12 +02:00
parent d434b44cfc
commit 6e7c160195

View File

@ -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;