svn commit: r188887 - head/usr.bin/truncate

Xin LI delphij at FreeBSD.org
Fri Feb 20 19:42:32 PST 2009


Author: delphij
Date: Sat Feb 21 03:42:31 2009
New Revision: 188887
URL: http://svn.freebsd.org/changeset/base/188887

Log:
  Initialize 'sz' as 0.

Modified:
  head/usr.bin/truncate/truncate.c

Modified: head/usr.bin/truncate/truncate.c
==============================================================================
--- head/usr.bin/truncate/truncate.c	Sat Feb 21 03:38:46 2009	(r188886)
+++ head/usr.bin/truncate/truncate.c	Sat Feb 21 03:42:31 2009	(r188887)
@@ -1,4 +1,4 @@
-/*
+/*-
  * Copyright (c) 2000 Sheldon Hearn <sheldonh at FreeBSD.org>.
  * All rights reserved.
  *
@@ -58,7 +58,7 @@ main(int argc, char **argv)
 	char   *fname, *rname;
 
 	fd = -1;
-	rsize = tsize = 0;
+	rsize = tsize = sz = 0;
 	error = 0;
 	rname = NULL;
 	while ((ch = getopt(argc, argv, "cr:s:")) != -1)


More information about the svn-src-all mailing list