#include <tic.h>
-MODULE_ID("$Id: comp_parse.c,v 1.112 2021/02/27 21:01:21 tom Exp $")
+MODULE_ID("$Id: comp_parse.c,v 1.113 2021/05/08 15:03:42 tom Exp $")
static void sanity_check2(TERMTYPE2 *, bool);
NCURSES_IMPEXP void (NCURSES_API *_nc_check_termtype2) (TERMTYPE2 *, bool) = sanity_check2;
/* verify that there are no earlier uses */
for (j = 0; j < i; ++j) {
- if (!strcmp(qp->uses[j].link->tterm.term_names,
- rp->tterm.term_names)) {
+ if (qp->uses[j].link != NULL
+ && !strcmp(qp->uses[j].link->tterm.term_names,
+ rp->tterm.term_names)) {
_nc_warning("duplicate use=%s", lookfor);
break;
}
/* verify that there are no earlier uses */
for (j = 0; j < i; ++j) {
- if (!strcmp(qp->uses[j].link->tterm.term_names,
- rp->tterm.term_names)) {
+ if (qp->uses[j].link != NULL
+ && !strcmp(qp->uses[j].link->tterm.term_names,
+ rp->tterm.term_names)) {
_nc_warning("duplicate use=%s", lookfor);
break;
}