summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2005-05-21 18:33:20 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2005-05-21 18:33:20 +0000
commit6b58ba07f5e0fa31dd52d3d1c70e44f688a7cbe0 (patch)
treee410e2643ad4e5c0da115930ef64997cf2d0ff3f /tests
parentdda7b2959e7511fa04cbf2e87739805fc28629c2 (diff)
downloadATCD-6b58ba07f5e0fa31dd52d3d1c70e44f688a7cbe0.tar.gz
ChangeLogTag: Sat May 21 18:30:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'tests')
-rw-r--r--tests/HTBP/Reactor_Tests/server.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/HTBP/Reactor_Tests/server.cpp b/tests/HTBP/Reactor_Tests/server.cpp
index 3e6146e2f3f..87a914163c2 100644
--- a/tests/HTBP/Reactor_Tests/server.cpp
+++ b/tests/HTBP/Reactor_Tests/server.cpp
@@ -142,7 +142,9 @@ Stream_Handler::handle_input (ACE_HANDLE h)
ACE_DEBUG ((LM_DEBUG,
ACE_TEXT ("Stream_Handler::handle_input (%d) read %d:\n%C\n"),
h, n, buffer));
- if (ACE_OS::strstr (buffer, "goodbye") != 0)
+
+ const char *tok_loc = ACE_OS::strstr (buffer, "goodbye");
+ if (tok_loc != 0)
this->reactor()->end_event_loop();
else
{