X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftic.c;h=627a62930218b4697a1ec9ffd14bff545631aca0;hp=23282e08d3c49e471331054cc56c0a797c6a6142;hb=d96f3e9b8a422f6daa2101d4d165801421312aa0;hpb=40cf934fff2d2790c060619e3a29bd54c20994b0;ds=inline diff --git a/progs/tic.c b/progs/tic.c index 23282e08..627a6293 100644 --- a/progs/tic.c +++ b/progs/tic.c @@ -44,7 +44,7 @@ #include #include -MODULE_ID("$Id: tic.c,v 1.140 2010/01/02 22:54:01 tom Exp $") +MODULE_ID("$Id: tic.c,v 1.142 2010/07/24 22:09:28 tom Exp $") const char *_nc_progname = "tic"; @@ -347,6 +347,9 @@ stripped(char *src) if ((dst = strdup(src)) == NULL) failed("strdup"); + + assert(dst != 0); + len = strlen(dst); while (--len != 0 && isspace(UChar(dst[len]))) dst[len] = '\0'; @@ -1438,6 +1441,11 @@ check_termtype(TERMTYPE *tp, bool literal) ANDMISSING(change_scroll_region, save_cursor); ANDMISSING(change_scroll_region, restore_cursor); + /* + * If we can clear tabs, we should be able to initialize them. + */ + ANDMISSING(clear_all_tabs, set_tab); + if (PRESENT(set_attributes)) { char *zero = 0;