summaryrefslogtreecommitdiff
path: root/grep.c
diff options
context:
space:
mode:
authorMark Whitley2000-07-12 23:35:21 +0000
committerMark Whitley2000-07-12 23:35:21 +0000
commitc41e8c840fd6faf802628036c7e5b2683d623c5d (patch)
treec4a47f2e1f1af68d3019f598bada0268f872c1b9 /grep.c
parent6f96e674b9176cafcc25de2a1d79d6f6d7f0e908 (diff)
downloadbusybox-c41e8c840fd6faf802628036c7e5b2683d623c5d.zip
busybox-c41e8c840fd6faf802628036c7e5b2683d623c5d.tar.gz
Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.c
(maybe I'll remove it later).
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 dec365f..77b5100 100644
--- a/grep.c
+++ b/grep.c
@@ -146,8 +146,7 @@ extern int grep_main(int argc, char **argv)
reflags = REG_NOSUB | REG_NEWLINE;
if (ignore_case)
reflags |= REG_ICASE;
- if (bb_regcomp(&regex, argv[optind], reflags) != 0)
- exit(1);
+ xregcomp(&regex, argv[optind], reflags);
/* argv[(optind+1)..(argc-1)] should be names of file to grep through. If
* there is more than one file to grep, we will print the filenames */