diff --git a/apps/app_queue.c b/apps/app_queue.c index ee252f99e2d2b9bb168f7c4f3ceb53b332b5dcf8..136dec59c0151953c3a97d9115345b392ed9c224 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -10354,7 +10354,7 @@ static char *complete_queue_add_member(const char *line, const char *word, int p case 6: /* only one possible match, "penalty" */ return state == 0 ? ast_strdup("penalty") : NULL; case 7: - if (state < 100) { /* 0-99 */ + if (0 <= state && state < 100) { /* 0-99 */ char *num; if ((num = ast_malloc(3))) { sprintf(num, "%d", state);