summaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
authorDenys Vlasenko2016-06-20 00:36:21 +0200
committerDenys Vlasenko2016-06-20 00:36:21 +0200
commit94046d04951e1e67ddfb7919d8f382dbbfc70a12 (patch)
tree3292d33bfc35b369471062f52884bc87d5d9a57c /findutils/grep.c
parentbb0bf287d8fcb59a7d44661681576f77845dedbc (diff)
downloadbusybox-94046d04951e1e67ddfb7919d8f382dbbfc70a12.zip
busybox-94046d04951e1e67ddfb7919d8f382dbbfc70a12.tar.gz
randomconfig fixes 3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index b072cd4..aeb7977 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -686,6 +686,7 @@ int grep_main(int argc UNUSED_PARAM, char **argv)
#if ENABLE_FEATURE_GREP_CONTEXT
int Copt, opts;
#endif
+ INIT_G();
/* For grep, exitcode of 1 is "not found". Other errors are 2: */
xfunc_error_retval = 2;