Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Fix compile error (may be used uninitialized)
details: https://anonhg.NetBSD.org/src/rev/8813c40a5313
branches: trunk
changeset: 828527:8813c40a5313
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Dec 18 05:35:36 2017 +0000
description:
Fix compile error (may be used uninitialized)
Hmm, __noinline had hidden this error.
diffstat:
sys/net/rtsock.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b2d7f62e2cf5 -r 8813c40a5313 sys/net/rtsock.c
--- a/sys/net/rtsock.c Mon Dec 18 05:35:01 2017 +0000
+++ b/sys/net/rtsock.c Mon Dec 18 05:35:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtsock.c,v 1.235 2017/12/18 05:35:01 ozaki-r Exp $ */
+/* $NetBSD: rtsock.c,v 1.236 2017/12/18 05:35:36 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.235 2017/12/18 05:35:01 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.236 2017/12/18 05:35:36 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -666,7 +666,7 @@
struct rt_xmsghdr *rtm)
{
int error = 0;
- struct ifnet *ifp = NULL, *new_ifp;
+ struct ifnet *ifp = NULL, *new_ifp = NULL;
struct ifaddr *ifa = NULL, *new_ifa;
struct psref psref_ifa, psref_new_ifa, psref_ifp, psref_new_ifp;
bool newgw, ifp_changed = false;
Home |
Main Index |
Thread Index |
Old Index