diff --git a/logger.c b/logger.c
index ca0e34a5218d8a21a0209405d901f00c4e46a3dd..857b8c3930f48e53ba36118c845c660e72c0111e 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 */