diff --git a/src/utils.c b/src/utils.c
index e7f8340cf12e37887eb9c8cd43a02d3245ef6fec..8fc6a1a01183fb588579a651944fa5beed2f2f00 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -279,7 +279,7 @@ const char *strstrwrapper(const char *haystack, const char *needle,
 	    regmatches[0].rm_eo = far_end;
 	    if (regexec(&search_regexp, haystack, 10, regmatches,
 					REG_STARTEND) != 0)
-		statusline(ALERT, "BAD: failed to refind the match!");
+		return NULL;
 
 	    return haystack + regmatches[0].rm_so;
 	}