X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftset.c;h=084e41d6db249c6812efe8d71eca30b0dbab9ccd;hp=49ba77fe75164d87679323a3c2246ae42b7c6e50;hb=d448186ac240901c6976dc74c260f052d3ed53e4;hpb=c04d54322f7835ed42e597967d8fa5471025fcac;ds=inline diff --git a/progs/tset.c b/progs/tset.c index 49ba77fe..084e41d6 100644 --- a/progs/tset.c +++ b/progs/tset.c @@ -119,7 +119,7 @@ char *ttyname(int fd); #include #include -MODULE_ID("$Id: tset.c,v 1.81 2010/01/16 15:20:23 tom Exp $") +MODULE_ID("$Id: tset.c,v 1.82 2010/05/01 21:42:46 tom Exp $") /* * SCO defines TIOCGSIZE and the corresponding struct. Other systems (SunOS, @@ -402,6 +402,10 @@ add_mapping(const char *port, char *arg) mapp = typeMalloc(MAP, 1); if (copy == 0 || mapp == 0) failed("malloc"); + + assert(copy != 0); + assert(mapp != 0); + mapp->next = 0; if (maplist == 0) cur = maplist = mapp; @@ -1266,7 +1270,7 @@ main(int argc, char **argv) reset_mode(); } - ttype = get_termcap_entry(*argv); + (void) get_termcap_entry(*argv); if (!noset) { tcolumns = columns;