mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
Fix uninitialized values
This commit is contained in:
parent
b7a3976456
commit
b9436e4d12
@ -113,9 +113,13 @@ MultiUrlRequestInfo::MultiUrlRequestInfo
|
||||
statCalc_(statCalc),
|
||||
summaryOut_(summaryOut),
|
||||
uriListParser_(uriListParser),
|
||||
// TODO init mask_
|
||||
useSignalHandler_(true)
|
||||
{
|
||||
#ifdef HAVE_SIGACTION
|
||||
sigemptyset(&mask_);
|
||||
#else // !HAVE_SIGACTION
|
||||
mask_ = 0;
|
||||
#endif // !HAVE_SIGACTION
|
||||
requestGroups_.swap(requestGroups);
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,8 @@ UDPTrackerReply::UDPTrackerReply()
|
||||
{}
|
||||
|
||||
UDPTrackerRequest::UDPTrackerRequest()
|
||||
: remotePort(0), action(UDPT_ACT_CONNECT), transactionId(0), downloaded(0),
|
||||
: remotePort(0), connectionId(0), action(UDPT_ACT_CONNECT),
|
||||
transactionId(0), downloaded(0),
|
||||
left(0), uploaded(0), event(UDPT_EVT_NONE), ip(0), key(0), numWant(0),
|
||||
port(0), extensions(0), state(UDPT_STA_PENDING), error(UDPT_ERR_SUCCESS),
|
||||
dispatched(0),
|
||||
|
@ -790,8 +790,12 @@ struct RequestGroupDH : public DownloadHandle {
|
||||
if(!torrentAttrs->metadata.empty()) {
|
||||
res.name = torrentAttrs->name;
|
||||
}
|
||||
}
|
||||
} else
|
||||
#endif // ENABLE_BITTORRENT
|
||||
{
|
||||
res.creationDate = 0;
|
||||
res.mode = BT_FILE_MODE_NONE;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
virtual const std::string& getOption(const std::string& name)
|
||||
|
Loading…
Reference in New Issue
Block a user