diff --git a/src/chars.c b/src/chars.c
index 571a52836e0529376ecb22be575d6b7463596964..e1afaa2e2136d11739e0043ca1e3c9380a46a747 100644
--- a/src/chars.c
+++ b/src/chars.c
@@ -622,7 +622,7 @@ const char *mbstrcasestr(const char *haystack, const char *needle)
 {
 #ifdef ENABLE_UTF8
     if (use_utf8) {
-	char *r_mb. *q_mb;
+	char *r_mb, *q_mb;
 	wchar_t wr, wq;
 	bool found_needle = FALSE;
 
@@ -730,7 +730,7 @@ const char *mbrevstrcasestr(const char *haystack, const char *needle,
 {
 #ifdef ENABLE_UTF8
     if (use_utf8) {
-	char *r_mb. *q_mb;
+	char *r_mb, *q_mb;
 	wchar_t wr, wq;
 	bool begin_line = FALSE, found_needle = FALSE;