From 7ed2ac759523dc3f50c9695b1399e4d7f034dddb Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 9 Sep 2021 13:02:36 +0000 Subject: [PATCH] No need to initialize nuv, it is assigned to before use. --- sys/kern/kern_unveil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_unveil.c b/sys/kern/kern_unveil.c index 19dacfa65b2..801c210c113 100644 --- a/sys/kern/kern_unveil.c +++ b/sys/kern/kern_unveil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_unveil.c,v 1.50 2021/09/02 12:35:23 claudio Exp $ */ +/* $OpenBSD: kern_unveil.c,v 1.51 2021/09/09 13:02:36 claudio Exp $ */ /* * Copyright (c) 2017-2019 Bob Beck @@ -691,7 +691,7 @@ int unveil_check_final(struct proc *p, struct nameidata *ni) { struct process *pr = p->p_p; - struct unveil *uv = NULL, *nuv = NULL; + struct unveil *uv = NULL, *nuv; struct unvname *tname = NULL; if (ni->ni_pledge == PLEDGE_UNVEIL || pr->ps_uvpaths == NULL) -- 2.20.1