diff --git a/apps/app_senddtmf.c b/apps/app_senddtmf.c index e48ba4fe06..08833fd54a 100644 --- a/apps/app_senddtmf.c +++ b/apps/app_senddtmf.c @@ -104,7 +104,7 @@ static int manager_play_dtmf(struct mansession *s, const struct message *m) astman_send_error(s, m, "Channel not specified"); return 0; } - if (!digit) { + if (ast_strlen_zero(digit)) { astman_send_error(s, m, "No digit specified"); ast_mutex_unlock(&chan->lock); return 0;