Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2009 03:42:31 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188887 - head/usr.bin/truncate
Message-ID:  <200902210342.n1L3gVBu047405@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902210342.n1L3gVBu047405>