aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-27 19:31:54 +0000
committermogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-27 19:31:54 +0000
commit7f2b0a39ea4bb48a13955fb3737b821ff4b0a1a5 (patch)
tree2db53aac89642dfbf8abe1d2a765fd76bc17106f /pbx.c
parent33cdd88430f3166291238739ecbb0759f417d48d (diff)
Janitor work converting !ast_strlen_zero(a)?a:b
to S_OR functions. from bug note 6805 with minor modifications. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15283 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r--pbx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbx.c b/pbx.c
index 278c18028..296e54c21 100644
--- a/pbx.c
+++ b/pbx.c
@@ -4311,8 +4311,8 @@ int ast_async_goto(struct ast_channel *chan, const char *context, const char *ex
tmpchan->writeformat = chan->writeformat;
/* Setup proper location */
ast_explicit_goto(tmpchan,
- (!ast_strlen_zero(context)) ? context : chan->context,
- (!ast_strlen_zero(exten)) ? exten : chan->exten,
+ S_OR(context, chan->context),
+ S_OR(exten, chan->exten),
priority);
/* Masquerade into temp channel */