From 50500a5f4418b15cd762af249206637d5bbc3540 Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 11 Mar 2021 07:43:34 +0000 Subject: [PATCH] that 0 should be NULL --- lib/libkvm/kvm.c | 4 ++-- 1 file 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) { -- 2.20.1