svn commit: trunk/busybox/coreutils

vda at busybox.net vda at busybox.net
Sun Jan 7 00:24:49 UTC 2007


Author: vda
Date: 2007-01-06 16:24:49 -0800 (Sat, 06 Jan 2007)
New Revision: 17176

Log:
work around gcc's false warning


Modified:
   trunk/busybox/coreutils/diff.c


Changeset:
Modified: trunk/busybox/coreutils/diff.c
===================================================================
--- trunk/busybox/coreutils/diff.c	2007-01-07 00:21:41 UTC (rev 17175)
+++ trunk/busybox/coreutils/diff.c	2007-01-07 00:24:49 UTC (rev 17176)
@@ -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))




More information about the busybox-cvs mailing list