Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/nfs Fix uninitialized variable.
details: https://anonhg.NetBSD.org/src/rev/1f4b29253db9
branches: trunk
changeset: 336576:1f4b29253db9
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Mar 06 19:03:30 2015 +0000
description:
Fix uninitialized variable.
Found by The Brainy Code Scanner in FreeBSD.
diffstat:
sys/nfs/krpc_subr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8827a7b4d095 -r 1f4b29253db9 sys/nfs/krpc_subr.c
--- a/sys/nfs/krpc_subr.c Fri Mar 06 15:39:28 2015 +0000
+++ b/sys/nfs/krpc_subr.c Fri Mar 06 19:03:30 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: krpc_subr.c,v 1.37 2009/03/15 17:20:09 cegger Exp $ */
+/* $NetBSD: krpc_subr.c,v 1.38 2015/03/06 19:03:30 maxv Exp $ */
/*
* Copyright (c) 1995 Gordon Ross, Adam Glass
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: krpc_subr.c,v 1.37 2009/03/15 17:20:09 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: krpc_subr.c,v 1.38 2015/03/06 19:03:30 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -241,7 +241,7 @@
* Create socket and set its receive timeout.
*/
if ((error = socreate(AF_INET, &so, SOCK_DGRAM, 0, l, NULL)))
- goto out;
+ return error;
if ((error = nfs_boot_setrecvtimo(so)))
goto out;
Home |
Main Index |
Thread Index |
Old Index