diff --git a/lib/download.c b/lib/download.c index 94e5ec3c..ef8ff73c 100644 --- a/lib/download.c +++ b/lib/download.c @@ -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;