aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-02-22 22:08:16 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-02-22 22:08:16 +0000
commitf24fed002f017fa21552b959643594cda442e6c4 (patch)
treef093668266a1b345596930d852234f4bdb7c8909
parent4a358a33512275f0138964e736069d39e3838043 (diff)
downloadbusybox-w32-f24fed002f017fa21552b959643594cda442e6c4.tar.gz
busybox-w32-f24fed002f017fa21552b959643594cda442e6c4.tar.bz2
busybox-w32-f24fed002f017fa21552b959643594cda442e6c4.zip
* findutils/grep.c (grep_main): Remove unnecessary use of junk.
git-svn-id: svn://busybox.net/trunk/busybox@4260 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--findutils/grep.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 11913f264..6fe183325 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -234,7 +234,7 @@ static void destroy_regexes(void)
234extern int grep_main(int argc, char **argv) 234extern int grep_main(int argc, char **argv)
235{ 235{
236 int opt; 236 int opt;
237#if defined (CONFIG_FEATURE_GREP_CONTEXT) || defined (CONFIG_FEATURE_GREP_EGREP_ALIAS) 237#if defined (CONFIG_FEATURE_GREP_CONTEXT)
238 char *junk; 238 char *junk;
239#endif 239#endif
240 240
@@ -244,8 +244,7 @@ extern int grep_main(int argc, char **argv)
244#endif 244#endif
245 245
246#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS 246#ifdef CONFIG_FEATURE_GREP_EGREP_ALIAS
247 junk = get_last_path_component(argv[0]); 247 if (strcmp(get_last_path_component(argv[0]), "egrep") == 0)
248 if (junk && strcmp(junk, "egrep") == 0)
249 reflags |= REG_EXTENDED; 248 reflags |= REG_EXTENDED;
250#endif 249#endif
251 250