--- ../grep-2.5.4.orig/src/search.c	2009-01-31 14:39:54.000000000 +0900
+++ src/search.c	2009-07-17 10:02:00.000000000 +0900
@@ -444,8 +444,7 @@
 		{
 		  /* Good enough for a non-exact match.
 		     No need to look at further patterns, if any.  */
-		  beg = match;
-		  goto success_in_len;
+		  goto success;
 		}
 	      if (match < best_match || (match == best_match && len > best_len))
 		{
