Update LogVisor.cpp

This commit is contained in:
Jack Andersen 2015-07-05 20:50:28 -10:00
parent c3dc632dd0
commit ab386ad858
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ struct ConsoleLogger : public ILogger
if (!Term)
{
Term = getenv("TERM");
if (!strncmp(Term, "xterm", 5))
if (Term && !strncmp(Term, "xterm", 5))
{
XtermColor = true;
putenv((char*)"TERM=xterm-16color");