From ab1d4e651ebad7c4e5bab32514d56af5dff56b33 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 7 Nov 2016 15:49:07 +0100 Subject: [PATCH] Bugfix: avoid bogus download size on start Missed a default init of the HTTP repo download content size, so until the request response header was received, this could report a very large value. --- simgear/io/HTTPRepository.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/io/HTTPRepository.cxx b/simgear/io/HTTPRepository.cxx index e6bf3be4..af4eecfc 100644 --- a/simgear/io/HTTPRepository.cxx +++ b/simgear/io/HTTPRepository.cxx @@ -68,7 +68,7 @@ namespace simgear } protected: HTTPDirectory* _directory; - size_t _contentSize; + size_t _contentSize = 0; }; typedef SGSharedPtr RepoRequestPtr;