diff options
Diffstat (limited to 'Src/Modules')
-rw-r--r-- | Src/Modules/termcap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/Modules/termcap.c b/Src/Modules/termcap.c index 5e4cfa07f..784844169 100644 --- a/Src/Modules/termcap.c +++ b/Src/Modules/termcap.c @@ -369,7 +369,10 @@ boot_(Module m) { #ifdef HAVE_TGETENT # ifdef HAVE_SETUPTERM - setupterm((char *)0, 1, (int *)0); + int errret; + if (setupterm((char *)0, 1, &errret) == ERR) { + return 1; + } # endif #endif return 0; |