aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-01-07 00:24:49 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-01-07 00:24:49 +0000
commitb05955e0a5aa5c16ef9460cf4bfed1ee589f5f64 (patch)
tree5079522aec9f156630fd4fa8dbc4a89ae852942d /coreutils
parent8336f080cb921a8c64c4cea59463363144e97c1d (diff)
downloadbusybox-b05955e0a5aa5c16ef9460cf4bfed1ee589f5f64.tar.gz
busybox-b05955e0a5aa5c16ef9460cf4bfed1ee589f5f64.tar.bz2
work around gcc's false warning
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/diff.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c
index 2ce681aff..872b78830 100644
--- a/coreutils/diff.c
+++ b/coreutils/diff.c
@@ -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))