From 16594884da1c20c60fa1211c76939696547c02b5 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 20 Dec 2013 19:04:23 -0800 Subject: Sockets are now working properly under MSVC. I guess I broke mingw32 though, but we'll fix this later. --- src/Handle.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Handle.cc') diff --git a/src/Handle.cc b/src/Handle.cc index e6c0777..c1542ac 100644 --- a/src/Handle.cc +++ b/src/Handle.cc @@ -47,7 +47,7 @@ ssize_t Balau::Handle::write(const void * buf, size_t count) throw (GeneralExcep } ssize_t Balau::Handle::forceRead(void * _buf, size_t count, Events::BaseEvent * evt) throw (GeneralException) { - ssize_t total; + ssize_t total = 0; uint8_t * buf = (uint8_t *) _buf; if (!canRead()) throw GeneralException("Handle can't read"); @@ -74,7 +74,7 @@ ssize_t Balau::Handle::forceRead(void * _buf, size_t count, Events::BaseEvent * } ssize_t Balau::Handle::forceWrite(const void * _buf, size_t count, Events::BaseEvent * evt) throw (GeneralException) { - ssize_t total; + ssize_t total = 0; const uint8_t * buf = (const uint8_t *) _buf; if (!canWrite()) throw GeneralException("Handle can't write"); -- cgit v1.2.3