summaryrefslogtreecommitdiff
path: root/libavutil/log.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-03 22:18:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-03 22:18:26 +0200
commit5a18b215f7138c0bd59f27389050b0311fa4a549 (patch)
tree1e17a11d4b3cd8dbed19615940d30de719b8ea42 /libavutil/log.c
parentd9ac00ca7a8cabd8d19e580a42d9129b8831fa52 (diff)
parent4ede1862dc62f4cac030a171099d8ec8a9b079ab (diff)
downloadffmpeg-5a18b215f7138c0bd59f27389050b0311fa4a549.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: log: Do not assume the TERM variable is always set Conflicts: libavutil/log.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/log.c')
-rw-r--r--libavutil/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/log.c b/libavutil/log.c
index 0f09a10ada..3a6ab12a26 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -130,7 +130,7 @@ static void check_color_terminal(void)
use_color = !getenv("NO_COLOR") && !getenv("AV_LOG_FORCE_NOCOLOR") &&
(getenv("TERM") && isatty(2) || getenv("AV_LOG_FORCE_COLOR"));
if ( getenv("AV_LOG_FORCE_256COLOR")
- || strstr(term, "256color"));
+ || (term && strstr(term, "256color")));
use_color *= 256;
#else
use_color = getenv("AV_LOG_FORCE_COLOR") && !getenv("NO_COLOR") &&