diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-01 16:33:22 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-01 16:33:22 +0000 |
commit | 82dc9e6325f8e8fa92d88a3bee32e8e2c63947f4 (patch) | |
tree | 4dafff55de8d89133b336eeb1cffcb28c53a3346 /main/pbx.c | |
parent | 529f997d85faf38ee88cf44d8ae60c739e02fda8 (diff) |
PCadach wanted better formatting of those 'if' conditions for 7859.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41692 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index ac88d5a01..2a0f21d77 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -741,7 +741,9 @@ static int _extension_match_core(const char *pattern, const char *data, enum ext { 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 */ |