From ba9673be1dcbf2a164a5899848230b6ff1b138f0 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 12 Jun 2011 00:51:36 +0900 Subject: [PATCH] Initialized member variables of DownloadResult in its ctor. --- src/DownloadResult.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/DownloadResult.cc b/src/DownloadResult.cc index 0ad04587..6a7f35cb 100644 --- a/src/DownloadResult.cc +++ b/src/DownloadResult.cc @@ -39,7 +39,19 @@ namespace aria2 { -DownloadResult::DownloadResult() {} +DownloadResult::DownloadResult() + : gid(0), + inMemoryDownload(false), + sessionDownloadLength(0), + sessionTime(0), + result(error_code::UNDEFINED), + belongsTo(0), + totalLength(0), + completedLength(0), + uploadLength(0), + pieceLength(0), + numPieces(0) +{} DownloadResult::~DownloadResult() {}