aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/err/err.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2015-04-28 16:34:52 -0400
committerRich Salz <rsalz@openssl.org>2015-04-28 16:34:52 -0400
commit2d29e2df0c9040e139d68c8659ee0342a6ac3dd1 (patch)
tree1c204074c02b3e356e60b51abe82e4552983bc80 /crypto/err/err.c
parentb196e7d936fb377d9c5b305748ac25ff0e53ef6d (diff)
downloadopenssl-2d29e2df0c9040e139d68c8659ee0342a6ac3dd1.tar.gz
realloc of NULL is like malloc
ANSI C, and OpenSSL's malloc wrapper do this, also. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/err/err.c')
-rw-r--r--crypto/err/err.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/err/err.c b/crypto/err/err.c
index 4752148169..ec7da22e5b 100644
--- a/crypto/err/err.c
+++ b/crypto/err/err.c
@@ -969,8 +969,8 @@ void ERR_add_error_vdata(int num, va_list args)
if (p == NULL) {
OPENSSL_free(str);
return;
- } else
- str = p;
+ }
+ str = p;
}
BUF_strlcat(str, a, (size_t)s + 1);
}