From: Steve Murphy Date: Fri, 1 Sep 2006 16:33:22 +0000 (+0000) Subject: PCadach wanted better formatting of those 'if' conditions for 7859. X-Git-Tag: 1.4.0-beta1~216 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ff2b02eaeb27d8e71f5c2a164f986cfc824dd9c;p=thirdparty%2Fasterisk.git PCadach wanted better formatting of those 'if' conditions for 7859. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41692 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index ac88d5a01a..2a0f21d77e 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 */