mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
return COMMS_CONN_NONE as address type of null comms rather than asserting.
This commit is contained in:
parent
45f2134ab5
commit
914fa857be
1 changed files with 5 additions and 2 deletions
|
@ -858,8 +858,11 @@ comms_checkAddr( DeviceRole role, const CommsAddrRec* addr, XW_UtilCtxt* util )
|
||||||
CommsConnType
|
CommsConnType
|
||||||
comms_getConType( const CommsCtxt* comms )
|
comms_getConType( const CommsCtxt* comms )
|
||||||
{
|
{
|
||||||
XP_ASSERT( !!comms ); /* or: return COMMS_CONN_NONE */
|
CommsConnType typ = !!comms ? comms->addr.conType : COMMS_CONN_NONE;
|
||||||
return comms->addr.conType;
|
if ( !comms ) {
|
||||||
|
XP_LOGF( "%s: returning COMMS_CONN_NONE for null comms", __func__ );
|
||||||
|
}
|
||||||
|
return typ;
|
||||||
} /* comms_getConType */
|
} /* comms_getConType */
|
||||||
|
|
||||||
XP_Bool
|
XP_Bool
|
||||||
|
|
Loading…
Add table
Reference in a new issue