svn commit: r263339 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Wed Mar 19 10:15:37 UTC 2014
Author: pho
Date: Wed Mar 19 10:15:37 2014
New Revision: 263339
URL: http://svnweb.freebsd.org/changeset/base/263339
Log:
Initialize variable before test.
Sponsored by: EMC / Isilon storage division
Modified:
user/pho/stress2/misc/rename12.sh
Modified: user/pho/stress2/misc/rename12.sh
==============================================================================
--- user/pho/stress2/misc/rename12.sh Wed Mar 19 10:14:17 2014 (r263338)
+++ user/pho/stress2/misc/rename12.sh Wed Mar 19 10:15:37 2014 (r263339)
@@ -140,6 +140,7 @@ rm(void)
setproctitle("rm");
pid = crpid;
+ i = 0;
while (i != n - 1 &&
read(rmpipe[0], &i, sizeof(i)) == sizeof(i)) {
snprintf(to, sizeof(to ), "dir2/d.%06d.%06d", pid, i);
More information about the svn-src-user
mailing list