projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8336f08
)
work around gcc's false warning
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 7 Jan 2007 00:24:49 +0000
(
00:24
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 7 Jan 2007 00:24:49 +0000
(
00:24
-0000)
coreutils/diff.c
patch
|
blob
|
history
diff --git
a/coreutils/diff.c
b/coreutils/diff.c
index 2ce681affd3df4adf645bd4948cee7cd4e41ac79..872b78830ed8bd9c00df5866f36d1bc4cf290b47 100644
(file)
--- 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))