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

changes/96/9996/1
Joshua Colp 8 years ago committed by Gerrit Code Review
commit 0bc1366e15

@ -9932,7 +9932,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);

Loading…
Cancel
Save