projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Coverity: fix two minor NPD issues.
[openssl.git]
/
crypto
/
conf
/
conf_lib.c
diff --git
a/crypto/conf/conf_lib.c
b/crypto/conf/conf_lib.c
index 606563a4fa20fa75109ae486b8248f4112557f7f..13d061b298cf870c441dd8430bb1b6c9f2143c96 100644
(file)
--- a/
crypto/conf/conf_lib.c
+++ b/
crypto/conf/conf_lib.c
@@
-356,8
+356,10
@@
OPENSSL_INIT_SETTINGS *OPENSSL_INIT_new(void)
{
OPENSSL_INIT_SETTINGS *ret = malloc(sizeof(*ret));
- if (ret != NULL)
- memset(ret, 0, sizeof(*ret));
+ if (ret == NULL)
+ return NULL;
+
+ memset(ret, 0, sizeof(*ret));
ret->flags = DEFAULT_CONF_MFLAGS;
return ret;