avoid grouchy compilers

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14423 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-07-29 21:41:04 +00:00
parent 0b38eb769a
commit 58d5c86936
1 changed files with 2 additions and 2 deletions

View File

@ -671,11 +671,11 @@ static switch_status_t is_intrastatelata(callback_t *cb_struct)
e164 format without the + e164 format without the +
NANP only (so 11 digits starting with 1) NANP only (so 11 digits starting with 1)
*/ */
if (!cb_struct->lookup_number || strlen(cb_struct->lookup_number) != 11 && *cb_struct->lookup_number != '1') { if (!cb_struct->lookup_number || (strlen(cb_struct->lookup_number) != 11 && *cb_struct->lookup_number != '1')) {
/* dest doesn't appear to be NANP number */ /* dest doesn't appear to be NANP number */
return SWITCH_STATUS_GENERR; return SWITCH_STATUS_GENERR;
} }
if (!cb_struct->cid || strlen(cb_struct->cid) != 11 && *cb_struct->cid != '1') { if (!cb_struct->cid || (strlen(cb_struct->cid) != 11 && *cb_struct->cid != '1')) {
/* cid not NANP */ /* cid not NANP */
return SWITCH_STATUS_GENERR; return SWITCH_STATUS_GENERR;
} }