summaryrefslogtreecommitdiff
path: root/channels/chan_vpb.c
diff options
context:
space:
mode:
authorMatt O'Gorman <mogorman@digium.com>2006-03-27 19:31:54 +0000
committerMatt O'Gorman <mogorman@digium.com>2006-03-27 19:31:54 +0000
commita5ece3388a82dcd27ee7d234891079709f6bea5b (patch)
tree2db53aac89642dfbf8abe1d2a765fd76bc17106f /channels/chan_vpb.c
parentf274b642aaacc08ab2a02d0783a2470ec8b1efd3 (diff)
Janitor work converting !ast_strlen_zero(a)?a:b
to S_OR functions. from bug note 6805 with minor modifications. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_vpb.c')
-rw-r--r--channels/chan_vpb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_vpb.c b/channels/chan_vpb.c
index a43a1f498..87a655cf9 100644
--- a/channels/chan_vpb.c
+++ b/channels/chan_vpb.c
@@ -923,7 +923,7 @@ static inline int monitor_handle_owned(struct vpb_pvt *p, VPB_EVENT *e)
else if (e->data == VPB_FAX){
if (!p->faxhandled){
if (strcmp(p->owner->exten, "fax")) {
- const char *target_context = ast_strlen_zero(p->owner->macrocontext) ? p->owner->context : p->owner->macrocontext;
+ const char *target_context = S_OR(p->owner->macrocontext, p->owner->context);
if (ast_exists_extension(p->owner, target_context, "fax", 1, p->owner->cid.cid_num)) {
if (option_verbose > 2)