projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use p==NULL not !p (in if statements, mainly)
[openssl.git]
/
crypto
/
x509v3
/
v3_bcons.c
diff --git
a/crypto/x509v3/v3_bcons.c
b/crypto/x509v3/v3_bcons.c
index 97bc079c0eb4f9481400d7ed29ca571d5450e2f8..3b89efba34cdbab5c038ef5118953ee8e7cdb600 100644
(file)
--- a/
crypto/x509v3/v3_bcons.c
+++ b/
crypto/x509v3/v3_bcons.c
@@
-107,7
+107,8
@@
static BASIC_CONSTRAINTS *v2i_BASIC_CONSTRAINTS(X509V3_EXT_METHOD *method,
BASIC_CONSTRAINTS *bcons = NULL;
CONF_VALUE *val;
int i;
- if (!(bcons = BASIC_CONSTRAINTS_new())) {
+
+ if ((bcons = BASIC_CONSTRAINTS_new()) == NULL) {
X509V3err(X509V3_F_V2I_BASIC_CONSTRAINTS, ERR_R_MALLOC_FAILURE);
return NULL;
}