Fix warnings, from Jan Tache in GitHub issue 2692.

This commit is contained in:
nicm
2021-06-10 07:45:43 +00:00
parent 02a6b39db7
commit 6c659494f5
4 changed files with 7 additions and 6 deletions

View File

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