diff --git a/libatalk/util/logger.c b/libatalk/util/logger.c index 84da705f97f..0d9de7de392 100644 --- a/libatalk/util/logger.c +++ b/libatalk/util/logger.c @@ -407,7 +407,7 @@ static void setuplog_internal(const char *loglevel, const char *logtype, } } - if (typenum >= num_logtype_strings) { + if (typenum >= (unsigned int)logtype_end_of_list_marker) { return; }