← Commit list

b05955e0a

Denis Vlasenko
Denis Vlasenko
2007-01-07
FAILED Duration: 2s

Subject

work around gcc's false warning

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 →

coreutils/diff.c+2 -3
@@ -898,8 +898,8 @@ static int diffreg(char *ofile1, char *ofile2, int flags)
{
char *file1 = ofile1;
char *file2 = ofile2;
- FILE *f1;
- FILE *f2;
+ FILE *f1 = stdin;
+ FILE *f2 = stdin;
int rval = D_SAME;
int i;
@@ -911,7 +911,6 @@ static int diffreg(char *ofile1, char *ofile2, int flags)
if (LONE_DASH(file1) && LONE_DASH(file2))
goto closem;
- f1 = f2 = stdin;
if (flags & D_EMPTY1)
f1 = xfopen(bb_dev_null, "r");
else if (NOT_LONE_DASH(file1))