Remove redundant test.

This commit is contained in:
Ben Laurie 2014-05-21 12:03:02 +01:00
parent dea4a18404
commit 12f1b3e79f

View file

@ -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)