X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftty%2Fhashmap.c;h=3426ee3272448d705e708b002203a5fa56426926;hp=a2c368769f87d8392c599764ca16c177ee80a6cf;hb=3ec8f79f3ceda990461c80de2f96d66b886e00d5;hpb=3faafb2efcc426a48649c12943d5006cae12cff1 diff --git a/ncurses/tty/hashmap.c b/ncurses/tty/hashmap.c index a2c36876..3426ee32 100644 --- a/ncurses/tty/hashmap.c +++ b/ncurses/tty/hashmap.c @@ -70,7 +70,7 @@ AUTHOR #include #include /* for back_color_erase */ -MODULE_ID("$Id: hashmap.c,v 1.51 2007/04/28 20:14:15 tom Exp $") +MODULE_ID("$Id: hashmap.c,v 1.52 2007/05/05 21:50:48 tom Exp $") #ifdef HASHDEBUG @@ -448,7 +448,9 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) char line[BUFSIZ], *st; int n; - SP = typeCalloc(SCREEN, 1); + if (!_nc_alloc_screen()) + return EXIT_FAILURE; + for (n = 0; n < screen_lines; n++) { reallines[n] = n; oldnums[n] = _NEWINDEX;