projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dea4a18
)
Remove redundant test.
author
Ben Laurie
<ben@links.org>
Wed, 21 May 2014 11:03:02 +0000
(12:03 +0100)
committer
Ben Laurie
<ben@links.org>
Wed, 21 May 2014 11:03:02 +0000
(12:03 +0100)
crypto/buffer/buf_str.c
patch
|
blob
|
history
diff --git
a/crypto/buffer/buf_str.c
b/crypto/buffer/buf_str.c
index 58028ebac72f4f1ecc7578896afe9079101ca603..35e4a2e7892617f879b712ade26b2f0cd058d73d 100644
(file)
--- a/
crypto/buffer/buf_str.c
+++ b/
crypto/buffer/buf_str.c
@@
-81,13
+81,10
@@
char *BUF_strdup(const char *str)
char *BUF_strndup(const char *str, size_t siz)
{
char *ret;
- size_t len;
if (str == NULL) return(NULL);
- len = BUF_strnlen(str, siz);
- if (siz > len)
- siz = len;
+ siz = BUF_strnlen(str, siz);
ret=OPENSSL_malloc(siz+1);
if (ret == NULL)