From aa6b2db95fcf632a9f8d4ac36ddf49904f1095d0 Mon Sep 17 00:00:00 2001 From: rtr Date: Sun, 19 Mar 2006 04:10:02 +0000 Subject: [PATCH] init struct vnode *vp = NULL coverity 2724 / run 6 XXX in future runs coverity may complain about deref NULL now but comment on line 382 indicates this should not be possible --- sys/ufs/lfs/lfs_syscalls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/ufs/lfs/lfs_syscalls.c b/sys/ufs/lfs/lfs_syscalls.c index 13febd23edbf..ae3ad1c5eccb 100644 --- a/sys/ufs/lfs/lfs_syscalls.c +++ b/sys/ufs/lfs/lfs_syscalls.c @@ -1,4 +1,4 @@ -/* $NetBSD: lfs_syscalls.c,v 1.109 2006/03/17 23:21:01 tls Exp $ */ +/* $NetBSD: lfs_syscalls.c,v 1.110 2006/03/19 04:10:02 rtr Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: lfs_syscalls.c,v 1.109 2006/03/17 23:21:01 tls Exp $"); +__KERNEL_RCSID(0, "$NetBSD: lfs_syscalls.c,v 1.110 2006/03/19 04:10:02 rtr Exp $"); #ifndef LFS # define LFS /* for prototypes in syscallargs.h */ @@ -231,7 +231,7 @@ lfs_markv(struct proc *p, fsid_t *fsidp, BLOCK_INFO *blkiov, int blkcnt) struct inode *ip = NULL; struct lfs *fs; struct mount *mntp; - struct vnode *vp; + struct vnode *vp = NULL; ino_t lastino; daddr_t b_daddr, v_daddr; int cnt, error;