work around gcc's false warning
diff --git a/coreutils/diff.c b/coreutils/diff.c
index 2ce681a..872b788 100644
--- a/coreutils/diff.c
+++ b/coreutils/diff.c
@@ -898,8 +898,8 @@
 {
 	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 @@
 	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))