aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
authormarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-12 23:35:21 +0000
committermarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-12 23:35:21 +0000
commitba3a7d1f1fdf140520a777394bab253f0d73e248 (patch)
treec4a47f2e1f1af68d3019f598bada0268f872c1b9 /findutils/grep.c
parent3cace58a62a16009e0e94d6e035986ec5da79911 (diff)
downloadbusybox-w32-ba3a7d1f1fdf140520a777394bab253f0d73e248.tar.gz
busybox-w32-ba3a7d1f1fdf140520a777394bab253f0d73e248.tar.bz2
busybox-w32-ba3a7d1f1fdf140520a777394bab253f0d73e248.zip
Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.c
(maybe I'll remove it later). git-svn-id: svn://busybox.net/trunk/busybox@833 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index dec365f05..77b510002 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -146,8 +146,7 @@ extern int grep_main(int argc, char **argv)
146 reflags = REG_NOSUB | REG_NEWLINE; 146 reflags = REG_NOSUB | REG_NEWLINE;
147 if (ignore_case) 147 if (ignore_case)
148 reflags |= REG_ICASE; 148 reflags |= REG_ICASE;
149 if (bb_regcomp(&regex, argv[optind], reflags) != 0) 149 xregcomp(&regex, argv[optind], reflags);
150 exit(1);
151 150
152 /* argv[(optind+1)..(argc-1)] should be names of file to grep through. If 151 /* argv[(optind+1)..(argc-1)] should be names of file to grep through. If
153 * there is more than one file to grep, we will print the filenames */ 152 * there is more than one file to grep, we will print the filenames */