Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/nfs Appease GCC and initialize arps_ip
details: https://anonhg.NetBSD.org/src/rev/ca220854ff1f
branches: trunk
changeset: 1000012:ca220854ff1f
user: kamil <kamil%NetBSD.org@localhost>
date: Sat Jun 29 17:42:36 2019 +0000
description:
Appease GCC and initialize arps_ip
Fixes build as GCC errors with maybe-uninitialized that is a false
positive.
diffstat:
sys/nfs/nfs_bootparam.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r e4e662604003 -r ca220854ff1f sys/nfs/nfs_bootparam.c
--- a/sys/nfs/nfs_bootparam.c Sat Jun 29 16:48:07 2019 +0000
+++ b/sys/nfs/nfs_bootparam.c Sat Jun 29 17:42:36 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_bootparam.c,v 1.38 2013/09/12 18:00:18 drochner Exp $ */
+/* $NetBSD: nfs_bootparam.c,v 1.39 2019/06/29 17:42:36 kamil Exp $ */
/*-
* Copyright (c) 1995, 1997 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_bootparam.c,v 1.38 2013/09/12 18:00:18 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_bootparam.c,v 1.39 2019/06/29 17:42:36 kamil Exp $");
#ifdef _KERNEL_OPT
#include "opt_nfs_boot.h"
@@ -127,6 +127,7 @@
}
error = EADDRNOTAVAIL;
+ memset(&arps_ip, 0, sizeof(arps_ip)); /* GCC */
#if NARP > 0
if (ifp->if_type == IFT_ETHER || ifp->if_type == IFT_FDDI) {
/*
Home |
Main Index |
Thread Index |
Old Index