xbps_fetch_file: memset the stat(2) struct before using it.
This commit is contained in:
parent
a685c9ee41
commit
35aa4b9951
@ -129,6 +129,7 @@ xbps_fetch_file(const char *uri,
|
||||
/*
|
||||
* Check if we have to resume a transfer.
|
||||
*/
|
||||
memset(&st, 0, sizeof(st));
|
||||
if (stat(destfile, &st) == 0) {
|
||||
if (st.st_size > 0)
|
||||
restart = true;
|
||||
|
Loading…
Reference in New Issue
Block a user