[asterisk-commits] murf: trunk r41692 - /trunk/main/pbx.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Sep 1 09:33:23 MST 2006


Author: murf
Date: Fri Sep  1 11:33:22 2006
New Revision: 41692

URL: http://svn.digium.com/view/asterisk?rev=41692&view=rev
Log:
PCadach wanted better formatting of those 'if' conditions for 7859.


Modified:
    trunk/main/pbx.c

Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?rev=41692&r1=41691&r2=41692&view=diff
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Fri Sep  1 11:33:22 2006
@@ -741,7 +741,9 @@
 {
 	mode &= E_MATCH_MASK;	/* only consider the relevant bits */
 
-	if (mode == E_MATCH && pattern[0] == '_' && strcasecmp(pattern,data)==0) /* note: if this test is left out, then _x. will not match _x. !!! */
+	if ( (mode == E_MATCH)
+		&& (pattern[0] == '_') 
+		&& (strcasecmp(pattern,data)==0) ) /* note: if this test is left out, then _x. will not match _x. !!! */
 		return 1;
 
 	if (pattern[0] != '_') { /* not a pattern, try exact or partial match */



More information about the asterisk-commits mailing list