diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2015-03-16 18:43:48 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2015-03-16 18:43:48 +0100 |
commit | 5bc50a89566c0392470e7d2bb2ad65bda4efabb4 (patch) | |
tree | a8843704e152298cd8514e4d71a446068df5a1a6 | |
parent | 54fb595448a75f3a4928eeadcb7bcb9aa031c006 (diff) | |
parent | 9cd2c61526213e0d20056bcc854bec01b3d2add0 (diff) | |
download | ATCD-5bc50a89566c0392470e7d2bb2ad65bda4efabb4.tar.gz |
Merge pull request #35 from mitza-oci/coverity-1288509
Fixed coverity warning 1288509
-rw-r--r-- | ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp b/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp index 3bc7bd09d13..7453273a511 100644 --- a/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp +++ b/ACE/tests/Dev_Poll_Reactor_Echo_Test.cpp @@ -169,11 +169,11 @@ Client::handle_input (ACE_HANDLE handle) ACE_TEXT ("(%t) Client::handle_input handle = %d bytes_read = %d\n"), handle, bytes_read)); - if (bytes_read < 0 && errno == EWOULDBLOCK) + if (bytes_read == -1 && errno == EWOULDBLOCK) { return 0; } - else if (bytes_read == 0) + else if (bytes_read <= 0) { // Closed. return -1; |