diff options
Diffstat (limited to 'apps/app_followme.c')
-rw-r--r-- | apps/app_followme.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c index 85dda00aa..42986c96f 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -1010,10 +1010,7 @@ static int app_exec(struct ast_channel *chan, void *data) goto outrun; if (ast_waitstream(chan, "") < 0) goto outrun; - if (!strcmp(targs.mohclass, "")) - ast_moh_start(chan, NULL); - else - ast_moh_start(chan, targs.mohclass); + ast_moh_start(chan, S_OR(targs.mohclass, NULL), NULL); targs.status = 0; |