loolwsd/test/helpers.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
New commits: commit 75dd470d062412177a626d8085f04e218973c994 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Date: Fri May 13 12:43:08 2016 -0400 loolwsd: variable initialization Change-Id: I0dbe0853f2b9bc4a4f69c2763a194766c0f6c616 Reviewed-on: https://gerrit.libreoffice.org/24987 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/loolwsd/test/helpers.hpp b/loolwsd/test/helpers.hpp index 67410e7..c8c3f27 100644 --- a/loolwsd/test/helpers.hpp +++ b/loolwsd/test/helpers.hpp @@ -76,8 +76,7 @@ bool isDocumentLoaded(Poco::Net::WebSocket& ws, const std::string& name = "", bo bool isLoaded = false; try { - int flags; - int bytes; + int flags = 0; int retries = 30; const Poco::Timespan waitTime(1000000); @@ -87,7 +86,7 @@ bool isDocumentLoaded(Poco::Net::WebSocket& ws, const std::string& name = "", bo char buffer[READ_BUFFER_SIZE]; if (ws.poll(waitTime, Poco::Net::Socket::SELECT_READ)) { - bytes = ws.receiveFrame(buffer, sizeof(buffer), flags); + int bytes = ws.receiveFrame(buffer, sizeof(buffer), flags); if (bytes > 0 && (flags & Poco::Net::WebSocket::FRAME_OP_BITMASK) != Poco::Net::WebSocket::FRAME_OP_CLOSE) { std::cerr << name << "Got " << bytes << " bytes: " << LOOLProtocol::getAbbreviatedMessage(buffer, bytes) << std::endl; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits