diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-03 22:18:26 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-03 22:18:26 +0200 |
commit | 5a18b215f7138c0bd59f27389050b0311fa4a549 (patch) | |
tree | 1e17a11d4b3cd8dbed19615940d30de719b8ea42 /libavutil/log.c | |
parent | d9ac00ca7a8cabd8d19e580a42d9129b8831fa52 (diff) | |
parent | 4ede1862dc62f4cac030a171099d8ec8a9b079ab (diff) | |
download | ffmpeg-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.c | 2 |
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") && |