From 2017fd0179975c7e1768f89fbb010ede22dfb379 Mon Sep 17 00:00:00 2001 From: fvdl Date: Sat, 7 Jul 2001 23:33:54 +0000 Subject: [PATCH] flags was used uninitialized. --- sys/kern/kern_fork.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index e8f7027bbca6..eaac11d95b57 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_fork.c,v 1.85 2001/07/01 18:06:11 thorpej Exp $ */ +/* $NetBSD: kern_fork.c,v 1.86 2001/07/07 23:33:54 fvdl Exp $ */ /*- * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc. @@ -156,6 +156,8 @@ sys___clone(struct proc *p, void *v, register_t *retval) if (SCARG(uap, flags) & (CLONE_PID|CLONE_PTRACE)) return (EINVAL); + flags = 0; + if (SCARG(uap, flags) & CLONE_VM) flags |= FORK_SHAREVM; if (SCARG(uap, flags) & CLONE_FS)