artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97887b4
)
that 0 should be NULL
author
deraadt
<deraadt@openbsd.org>
Thu, 11 Mar 2021 07:43:34 +0000
(07:43 +0000)
committer
deraadt
<deraadt@openbsd.org>
Thu, 11 Mar 2021 07:43:34 +0000
(07:43 +0000)
lib/libkvm/kvm.c
patch
|
blob
|
history
diff --git
a/lib/libkvm/kvm.c
b/lib/libkvm/kvm.c
index
63e67fd
..
928d8f9
100644
(file)
--- a/
lib/libkvm/kvm.c
+++ b/
lib/libkvm/kvm.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: kvm.c,v 1.6
7 2020/10/14 19:28:22 naddy
Exp $ */
+/* $OpenBSD: kvm.c,v 1.6
8 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) {