Merge "app_queue: Silence GCC 8 compiler warning" into 16

This commit is contained in:
Joshua Colp 2018-08-22 11:35:49 -05:00 committed by Gerrit Code Review
commit bd650b6a49
1 changed files with 1 additions and 1 deletions

View File

@ -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);