Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 Clear saved_flags to avoid compile error on som...



details:   https://anonhg.NetBSD.org/src/rev/89cdae0af75e
branches:  trunk
changeset: 371996:89cdae0af75e
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Oct 24 14:15:19 2022 +0000

description:
Clear saved_flags to avoid compile error on some archs.

diffstat:

 sys/netinet6/in6.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r dbc2f04cf9c2 -r 89cdae0af75e sys/netinet6/in6.c
--- a/sys/netinet6/in6.c        Mon Oct 24 13:42:55 2022 +0000
+++ b/sys/netinet6/in6.c        Mon Oct 24 14:15:19 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6.c,v 1.287 2022/10/24 01:54:19 knakahara Exp $      */
+/*     $NetBSD: in6.c,v 1.288 2022/10/24 14:15:19 msaitoh Exp $        */
 /*     $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $   */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.287 2022/10/24 01:54:19 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.288 2022/10/24 14:15:19 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1067,7 +1067,7 @@
        char ip6buf[INET6_ADDRSTRLEN];
        bool addrmaskNotChanged = false;
        bool send_rtm_newaddr = (ip6_param_rt_msg == 1);
-       int saved_flags;
+       int saved_flags = 0;
 
        KASSERT((iap == NULL && psref == NULL) ||
            (iap != NULL && psref != NULL));



Home | Main Index | Thread Index | Old Index