mirror of
https://github.com/mirror/wget.git
synced 2025-02-02 07:40:15 +08:00
void uninitialized variable in metalink code
* src/metalink.c: Init retr_err with METALINK_MISSING_RESOURCE * src/wget.h: Add enum METALINK_MISSING_RESOURCE
This commit is contained in:
parent
4e56a91001
commit
5d55018ce6
@ -83,7 +83,7 @@ retrieve_from_metalink (const metalink_t* metalink)
|
||||
char *filename = NULL;
|
||||
bool hash_ok = false;
|
||||
|
||||
uerr_t retr_err;
|
||||
uerr_t retr_err = METALINK_MISSING_RESOURCE;
|
||||
|
||||
/* -1 -> file should be rejected
|
||||
0 -> could not verify
|
||||
|
@ -357,7 +357,7 @@ typedef enum
|
||||
WARC_ERR, WARC_TMP_FOPENERR, WARC_TMP_FWRITEERR,
|
||||
TIMECONV_ERR,
|
||||
METALINK_PARSE_ERROR, METALINK_RETR_ERROR,
|
||||
METALINK_CHKSUM_ERROR, METALINK_SIG_ERROR,
|
||||
METALINK_CHKSUM_ERROR, METALINK_SIG_ERROR, METALINK_MISSING_RESOURCE,
|
||||
RETR_WITH_METALINK
|
||||
} uerr_t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user