Source-Changes-HG archive

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

[src/trunk]: src/lib/libp2k Fix kassert in lfs by initializing vp first.



details:   https://anonhg.NetBSD.org/src/rev/2cc16100a631
branches:  trunk
changeset: 849067:2cc16100a631
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Feb 20 15:48:52 2020 +0000

description:
Fix kassert in lfs by initializing vp first.

diffstat:

 lib/libp2k/p2k.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 861d6134d4f1 -r 2cc16100a631 lib/libp2k/p2k.c
--- a/lib/libp2k/p2k.c  Thu Feb 20 15:48:38 2020 +0000
+++ b/lib/libp2k/p2k.c  Thu Feb 20 15:48:52 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: p2k.c,v 1.71 2019/09/23 12:00:57 christos Exp $        */
+/*     $NetBSD: p2k.c,v 1.72 2020/02/20 15:48:52 riastradh Exp $       */
 
 /*
  * Copyright (c) 2007, 2008, 2009  Antti Kantee.  All Rights Reserved.
@@ -791,7 +791,7 @@
        struct p2k_node *p2n;
        struct componentname *cn;
        struct vattr *va_x;
-       struct vnode *vp;
+       struct vnode *vp = NULL;
        int rv;
 
        p2n = malloc(sizeof(*p2n));



Home | Main Index | Thread Index | Old Index