summaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorMatt Kraai2002-02-22 22:08:16 +0000
committerMatt Kraai2002-02-22 22:08:16 +0000
commiteed9451cf6076a07b1768c3ca5ef21618b00b38d (patch)
treef093668266a1b345596930d852234f4bdb7c8909 /findutils
parentfa144713b8db8aeefc3fcff8caf097cfddbbfd5b (diff)
downloadbusybox-eed9451cf6076a07b1768c3ca5ef21618b00b38d.zip
busybox-eed9451cf6076a07b1768c3ca5ef21618b00b38d.tar.gz
* findutils/grep.c (grep_main): Remove unnecessary use of junk.
Diffstat (limited to 'findutils')
-rw-r--r--findutils/grep.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 11913f2..6fe1833 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -234,7 +234,7 @@ static void destroy_regexes(void)
extern int grep_main(int argc, char **argv)
{
int opt;
-#if defined (CONFIG_FEATURE_GREP_CONTEXT) || defined (CONFIG_FEATURE_GREP_EGREP_ALIAS)
+#if defined (CONFIG_FEATURE_GREP_CONTEXT)
char *junk;
#endif
@@ -244,8 +244,7 @@ extern int grep_main(int argc, char **argv)
#endif
#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
- junk = get_last_path_component(argv[0]);
- if (junk && strcmp(junk, "egrep") == 0)
+ if (strcmp(get_last_path_component(argv[0]), "egrep") == 0)
reflags |= REG_EXTENDED;
#endif