loolwsd/DocumentBroker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c989ead6b842e62ee6ad68e327bc930d2eae1933 Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Mon Nov 21 10:02:27 2016 +0100 DocumentBroker: fix uninitialized getInfoCallDuration It was written in one conditional branch and was read in an other conditional branch. So make sure no uninitialized data is read. Change-Id: I230c6a4d3b048ee9d7f96881baf00eb041204ff0 diff --git a/loolwsd/DocumentBroker.cpp b/loolwsd/DocumentBroker.cpp index 39702cc..74dada2 100644 --- a/loolwsd/DocumentBroker.cpp +++ b/loolwsd/DocumentBroker.cpp @@ -247,7 +247,7 @@ bool DocumentBroker::load(std::shared_ptr<ClientSession>& session, const std::st // Call the storage specific file info functions std::string userid, username; - std::chrono::duration<double> getInfoCallDuration; + std::chrono::duration<double> getInfoCallDuration(0); if (dynamic_cast<WopiStorage*>(_storage.get()) != nullptr) { const WopiStorage::WOPIFileInfo wopifileinfo = static_cast<WopiStorage*>(_storage.get())->getWOPIFileInfo(uriPublic); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits