Some code improvements

This commit is contained in:
Markus Gans 2017-09-11 03:23:50 +02:00
parent dc3c5d19e4
commit 745e3677ed
1 changed files with 2 additions and 1 deletions

View File

@ -3699,7 +3699,8 @@ void FTerm::init()
std::abort();
// Get pathname of the terminal device
ttyname_r (stdout_no, term_name, sizeof(term_name));
if ( ! ttyname_r (stdout_no, term_name, sizeof(term_name)) )
term_name[0] = '\0';
#if defined(__linux__)
// initialize Linux console