diff --git a/apps/app_senddtmf.c b/apps/app_senddtmf.c
index 05faf2221a239a64e218c564e2f9bd34c60811ff..9842c412e7913fa413c5103d165e78f721706a52 100644
--- a/apps/app_senddtmf.c
+++ b/apps/app_senddtmf.c
@@ -106,7 +106,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_channel_unlock(chan);
 		return 0;