mirror of
https://github.com/sheumann/hush.git
synced 2025-01-18 07:31:34 +00:00
* findutils/grep.c (grep_main): Remove unnecessary use of junk.
This commit is contained in:
parent
fa144713b8
commit
eed9451cf6
@ -234,7 +234,7 @@ static void destroy_regexes(void)
|
|||||||
extern int grep_main(int argc, char **argv)
|
extern int grep_main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int opt;
|
int opt;
|
||||||
#if defined (CONFIG_FEATURE_GREP_CONTEXT) || defined (CONFIG_FEATURE_GREP_EGREP_ALIAS)
|
#if defined (CONFIG_FEATURE_GREP_CONTEXT)
|
||||||
char *junk;
|
char *junk;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -244,8 +244,7 @@ extern int grep_main(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
|
#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
|
||||||
junk = get_last_path_component(argv[0]);
|
if (strcmp(get_last_path_component(argv[0]), "egrep") == 0)
|
||||||
if (junk && strcmp(junk, "egrep") == 0)
|
|
||||||
reflags |= REG_EXTENDED;
|
reflags |= REG_EXTENDED;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user