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
/
x509
/
x509spki.c
diff --git
a/crypto/x509/x509spki.c
b/crypto/x509/x509spki.c
index fb46d4e3af7209be5897b057eb432f51f9de7bfb..482741ae56a81abd37d5ecc050cc47d7d3117271 100644
(file)
--- a/
crypto/x509/x509spki.c
+++ b/
crypto/x509/x509spki.c
@@
-85,7
+85,7
@@
NETSCAPE_SPKI *NETSCAPE_SPKI_b64_decode(const char *str, int len)
NETSCAPE_SPKI *spki;
if (len <= 0)
len = strlen(str);
- if (
!(spki_der = OPENSSL_malloc(len + 1))
) {
+ if (
(spki_der = OPENSSL_malloc(len + 1)) == NULL
) {
X509err(X509_F_NETSCAPE_SPKI_B64_DECODE, ERR_R_MALLOC_FAILURE);
return NULL;
}