aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
Diffstat (limited to 'findutils')
-rw-r--r--findutils/grep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index b072cd441..aeb7977e9 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;