Janitor work converting !ast_strlen_zero(a)?a:b
[asterisk/asterisk.git] / apps / app_directory.c
index 1935a0c..63dd3c6 100644 (file)
@@ -179,7 +179,7 @@ static int play_mailbox_owner(struct ast_channel *chan, char *context, char *dia
                }
                ast_stopstream(chan);
        } else {
                }
                ast_stopstream(chan);
        } else {
-               res = ast_say_character_str(chan, !ast_strlen_zero(name) ? name : ext,
+               res = ast_say_character_str(chan, S_OR(name, ext),
                                        AST_DIGIT_ANY, chan->language);
        }
 
                                        AST_DIGIT_ANY, chan->language);
        }