Remove redundant test.

This commit is contained in:
Ben Laurie 2014-05-21 12:03:02 +01:00
parent ed693e4332
commit 4f7236edc7

View file

@ -79,13 +79,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)