diff --git a/logger.c b/logger.c index ca0e34a521..857b8c3930 100755 --- a/logger.c +++ b/logger.c @@ -608,7 +608,7 @@ static void strip_coloring(char *str) { char *src, *dest, *end; - if (!src) + if (!str) return; /* find the first potential escape sequence in the string */