--- main/editline/term.c (Asterisk 15.2) +++ main/editline/term.c (working copy) @@ -428,7 +428,7 @@ term_alloc(EditLine *el, const struct te */ tlen = 0; for (tmp = tlist; tmp < &tlist[T_str]; tmp++) - if (*tmp != NULL && *tmp != '\0' && *tmp != *str) { + if (*tmp != NULL && **tmp != '\0' && *tmp != *str) { char *ptr; for (ptr = *tmp; *ptr != '\0'; termbuf[tlen++] = *ptr++)