aboutsummaryrefslogtreecommitdiff
path: root/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'grep.c')
-rw-r--r--grep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/grep.c b/grep.c
index dec365f05..77b510002 100644
--- a/grep.c
+++ b/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 */