diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-20 19:04:23 -0800 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-20 19:04:23 -0800 |
commit | 16594884da1c20c60fa1211c76939696547c02b5 (patch) | |
tree | 1e1ae20b323f6e99a36bcf9611032726c76afae6 /src/Handle.cc | |
parent | 3a91332a70abfc777a352c46727f54426c982371 (diff) |
Sockets are now working properly under MSVC. I guess I broke mingw32 though, but we'll fix this later.
Diffstat (limited to 'src/Handle.cc')
-rw-r--r-- | src/Handle.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |