Module Name: src
Committed By: kamil
Date: Sat Jun 29 17:42:36 UTC 2019
Modified Files:
src/sys/nfs: nfs_bootparam.c
Log Message:
Appease GCC and initialize arps_ip
Fixes build as GCC errors with maybe-uninitialized that is a false
positive.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/nfs/nfs_bootparam.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/nfs/nfs_bootparam.c
diff -u src/sys/nfs/nfs_bootparam.c:1.38 src/sys/nfs/nfs_bootparam.c:1.39
--- src/sys/nfs/nfs_bootparam.c:1.38 Thu Sep 12 18:00:18 2013
+++ src/sys/nfs/nfs_bootparam.c Sat Jun 29 17:42:36 2019
@@ -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 @@ nfs_bootparam(struct nfs_diskless *nd, s
}
error = EADDRNOTAVAIL;
+ memset(&arps_ip, 0, sizeof(arps_ip)); /* GCC */
#if NARP > 0
if (ifp->if_type == IFT_ETHER || ifp->if_type == IFT_FDDI) {
/*