if (q != p && (t = malloc((unsigned) (q - p + 1))) != 0) {
if (q != p && (t = malloc(q - p + 1)) != 0) {
ttinit(){	int i;	register struct tt_tab *tp;	register char *p, *q;	register char *t;	tt_strp = tt_strings;	/*	 * Set output buffer size to about 1 second of output time.	 */	i = MIN(wwbaud/10, 512);	if ((tt_ob = malloc((unsigned) i)) == 0) {		wwerrno = WWE_NOMEM;		return -1;	}	tt_obp = tt_ob;	tt_obe = tt_ob + i;	/*	 * Use the standard name of the terminal (i.e. the second	 * name in termcap).	 */	for (p = wwtermcap; *p && *p != '|' && *p != ':'; p++)		;	if (*p == '|')		p++;	for (q = p; *q && *q != '|' && *q != ':'; q++)		;	if (q != p && (t = malloc((unsigned) (q - p + 1))) != 0) {		wwterm = t;		while (p < q)			*t++ = *p++;		*t = 0;	}	for (tp = tt_tab; tp->tt_name != 0; tp++)		if (strncmp(tp->tt_name, wwterm, tp->tt_len) == 0)			break;	if (tp->tt_name == 0) {		wwerrno = WWE_BADTERM;		return -1;	}	if ((*tp->tt_func)() < 0) {		wwerrno = WWE_CANTDO;		return -1;	}	if (wwgetttysize(0, &tt.tt_nrow, &tt.tt_ncol) < 0)		return -1;	tt.tt_scroll_top = 0;	tt.tt_scroll_bot = tt.tt_nrow - 1;	return 0;}