exp passed to assert must not change the state of the data structures

This commit is contained in:
Jeff Hill
2009-08-24 17:03:17 +00:00
parent aa904449c0
commit 794811b95a
3 changed files with 8 additions and 4 deletions

View File

@@ -511,7 +511,10 @@ void ca_repeater ()
pBuf = new char [MAX_UDP_RECV];
assert ( osiSockAttach() );
{
bool success = osiSockAttach();
assert ( success );
}
port = envGetInetPortConfigParam ( & EPICS_CA_REPEATER_PORT,
static_cast <unsigned short> (CA_REPEATER_PORT) );