← Commit list

eed9451cf

Matt Kraai
Matt Kraai
2002-02-22
FAILED Duration: 345s

Subject

* findutils/grep.c (grep_main): Remove unnecessary use of junk.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

findutils/grep.c+2 -3
@@ -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