Fix warnings, from Jan Tache in GitHub issue 2692.

This commit is contained in:
Nicholas Marriott
2021-05-03 06:39:17 +01:00
parent 2e7ec8c0b9
commit 40467726e3
4 changed files with 7 additions and 6 deletions

View File

@ -697,7 +697,7 @@ tty_term_read_list(const char *name, int fd, char ***caps, u_int *ncaps,
ent = &tty_term_codes[i];
switch (ent->type) {
case TTYCODE_NONE:
break;
continue;
case TTYCODE_STRING:
s = tigetstr((char *)ent->name);
if (s == NULL || s == (char *)-1)