diff --git a/main/pbx.c b/main/pbx.c index c879c5834..82f69c5f4 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -3329,7 +3329,7 @@ static void print_ext(struct ast_exten *e, char * buf, int buflen) } else { snprintf(buf, buflen, "%d. %s(%s)", prio, ast_get_extension_app(e), - (char *)ast_get_extension_app_data(e)); + (!ast_strlen_zero(ast_get_extension_app_data(e)) ? (char *)ast_get_extension_app_data(e) : "")); } }