Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/sysvbfs Make sure err is initialized.
details: https://anonhg.NetBSD.org/src/rev/20db73337189
branches: trunk
changeset: 337147:20db73337189
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Apr 04 13:28:36 2015 +0000
description:
Make sure err is initialized.
diffstat:
sys/fs/sysvbfs/sysvbfs_vnops.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 0d687e1c06ed -r 20db73337189 sys/fs/sysvbfs/sysvbfs_vnops.c
--- a/sys/fs/sysvbfs/sysvbfs_vnops.c Sat Apr 04 13:06:01 2015 +0000
+++ b/sys/fs/sysvbfs/sysvbfs_vnops.c Sat Apr 04 13:28:36 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysvbfs_vnops.c,v 1.57 2015/04/04 12:34:45 riastradh Exp $ */
+/* $NetBSD: sysvbfs_vnops.c,v 1.58 2015/04/04 13:28:36 riastradh Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vnops.c,v 1.57 2015/04/04 12:34:45 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vnops.c,v 1.58 2015/04/04 13:28:36 riastradh Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -439,6 +439,7 @@
return EINVAL;
}
+ err = 0;
while (uio->uio_resid > 0) {
if ((sz = MIN(filesz - uio->uio_offset, uio->uio_resid)) == 0)
break;
Home |
Main Index |
Thread Index |
Old Index