artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02ce993
)
Use bn_checkp() always; from kshe
author
otto
<otto@openbsd.org>
Tue, 12 Dec 2017 19:08:57 +0000
(19:08 +0000)
committer
otto
<otto@openbsd.org>
Tue, 12 Dec 2017 19:08:57 +0000
(19:08 +0000)
usr.bin/dc/mem.c
patch
|
blob
|
history
diff --git
a/usr.bin/dc/mem.c
b/usr.bin/dc/mem.c
index
7359d48
..
db0abfe
100644
(file)
--- a/
usr.bin/dc/mem.c
+++ b/
usr.bin/dc/mem.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: mem.c,v 1.
8 2017/12/07 06:34:05
otto Exp $ */
+/* $OpenBSD: mem.c,v 1.
9 2017/12/12 19:08:57
otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@
-32,8
+32,7
@@
new_number(void)
n = bmalloc(sizeof(*n));
n->scale = 0;
n->number = BN_new();
- if (n->number == NULL)
- err(1, NULL);
+ bn_checkp(n->number);
return n;
}