diff --git a/common/msg.c b/common/msg.c index 42fa770fba..4576754337 100644 --- a/common/msg.c +++ b/common/msg.c @@ -632,7 +632,7 @@ const int mp_mpv_log_levels[MSGL_MAX + 1] = { int mp_msg_find_level(const char *s) { for (int n = 0; n < MP_ARRAY_SIZE(mp_log_levels); n++) { - if (mp_log_levels[n] && mp_log_levels[n] && !strcmp(s, mp_log_levels[n])) + if (mp_log_levels[n] && !strcmp(s, mp_log_levels[n])) return n; } return -1;