From fb0959d1c44b1f7515aacf90a2f5a3d266e9d924 Mon Sep 17 00:00:00 2001 From: vda Date: Sun, 7 Jan 2007 00:24:49 +0000 Subject: work around gcc's false warning git-svn-id: svn://busybox.net/trunk/busybox@17176 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- coreutils/diff.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'coreutils/diff.c') 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)) -- cgit v1.2.3-55-g6feb