Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern gcc (with some options) eroneously claims we would ...
details: https://anonhg.NetBSD.org/src/rev/2c9322a52d0a
branches: trunk
changeset: 1022053:2c9322a52d0a
user: martin <martin%NetBSD.org@localhost>
date: Thu Jul 01 15:53:20 2021 +0000
description:
gcc (with some options) eroneously claims we would use "vp" uninitialized,
so initialize it as NULL.
diffstat:
sys/kern/vfs_vnops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ec9c17409a77 -r 2c9322a52d0a sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c Thu Jul 01 15:06:01 2021 +0000
+++ b/sys/kern/vfs_vnops.c Thu Jul 01 15:53:20 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_vnops.c,v 1.219 2021/07/01 04:25:51 christos Exp $ */
+/* $NetBSD: vfs_vnops.c,v 1.220 2021/07/01 15:53:20 martin Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.219 2021/07/01 04:25:51 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.220 2021/07/01 15:53:20 martin Exp $");
#include "veriexec.h"
@@ -164,7 +164,7 @@
struct vnode **ret_vp, bool *ret_domove, int *ret_fd)
{
struct nameidata nd;
- struct vnode *vp;
+ struct vnode *vp = NULL;
struct lwp *l = curlwp;
kauth_cred_t cred = l->l_cred;
struct vattr va;
Home |
Main Index |
Thread Index |
Old Index