Revision
14423
Author
mikej
Date
2009-07-29 16:41:04 -0500 (Wed, 29 Jul 2009)

Log Message

avoid grouchy compilers

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c (14422 => 14423)


--- freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c	2009-07-29 21:30:05 UTC (rev 14422)
+++ freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c	2009-07-29 21:41:04 UTC (rev 14423)
@@ -671,11 +671,11 @@
 		e164 format without the +
 		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 */
 		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 */
 		return SWITCH_STATUS_GENERR;
 	}