grep failed to compile when BB_FEATURE_CLEAN_UP was defined -- types were wrong.
authorEric Andersen <andersen@codepoet.org>
Tue, 29 May 2001 22:36:39 +0000 (22:36 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 29 May 2001 22:36:39 +0000 (22:36 -0000)
findutils/grep.c
grep.c

index fb7df24..03cc9f8 100644 (file)
@@ -221,8 +221,8 @@ static void destroy_regexes()
 
        /* destroy all the elments in the array */
        while (--nregexes >= 0) {
-               regfree(regexes[nregexes]);
-               free(regexes[nregexes]);
+               regfree(&regexes[nregexes]);
+               free(&regexes[nregexes]);
        }
 }
 #endif
diff --git a/grep.c b/grep.c
index fb7df24..03cc9f8 100644 (file)
--- a/grep.c
+++ b/grep.c
@@ -221,8 +221,8 @@ static void destroy_regexes()
 
        /* destroy all the elments in the array */
        while (--nregexes >= 0) {
-               regfree(regexes[nregexes]);
-               free(regexes[nregexes]);
+               regfree(&regexes[nregexes]);
+               free(&regexes[nregexes]);
        }
 }
 #endif