-/* $OpenBSD: kern_acct.c,v 1.43 2020/07/26 13:27:24 rob Exp $ */
+/* $OpenBSD: kern_acct.c,v 1.44 2021/01/29 00:31:41 rob Exp $ */
/* $NetBSD: kern_acct.c,v 1.42 1996/02/04 02:15:12 christos Exp $ */
/*-
* writing and make sure it's 'normal'.
*/
if (SCARG(uap, path) != NULL) {
- NDINIT(&nd, 0, 0, UIO_USERSPACE, SCARG(uap, path),
- p);
+ NDINIT(&nd, 0, 0, UIO_USERSPACE, SCARG(uap, path), p);
if ((error = vn_open(&nd, FWRITE|O_APPEND, 0)) != 0)
return (error);
VOP_UNLOCK(nd.ni_vp);