diff --git a/libavutil/log.c b/libavutil/log.c
index d40be2bc55e8ee57f5ef8f316e700e0a4f3f7b33..4cceffc5a6bcbed2b833baed1201e62c4339f695 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")
-        || (term && strstr(term, "256color")));
+        || (term && strstr(term, "256color")))
         use_color *= 256;
 #else
     use_color = getenv("AV_LOG_FORCE_COLOR") && !getenv("NO_COLOR") &&