summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2021-03-11 07:43:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2021-03-11 07:43:35 +0000
commitdfd4dce7af82b05177454df259e78d3361bd4583 (patch)
treec6182e5d041fce5794a47957e6abf3096b900796
parent11ac49376a1eb3ae512d86571342c602ba50ab74 (diff)
that 0 should be NULL
-rw-r--r--lib/libkvm/kvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c
index 63e67fd4b95..928d8f94584 100644
--- a/lib/libkvm/kvm.c
+++ b/lib/libkvm/kvm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm.c,v 1.67 2020/10/14 19:28:22 naddy Exp $ */
+/* $OpenBSD: kvm.c,v 1.68 2021/03/11 07:43:34 deraadt Exp $ */
/* $NetBSD: kvm.c,v 1.43 1996/05/05 04:31:59 gwr Exp $ */
/*-
@@ -216,7 +216,7 @@ _kvm_open(kvm_t *kd, const char *uf, const char *mf, const char *sf,
}
flag |= O_CLOEXEC;
- if (mf == 0)
+ if (mf == NULL)
mf = _PATH_MEM;
if ((kd->pmfd = open(mf, flag)) == -1) {