fix warning
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
This commit is contained in:
parent
7ab507495b
commit
bc9d9ce27a
1 changed files with 2 additions and 0 deletions
|
@ -169,6 +169,8 @@ static unsigned char* unescape(const char *input, size_t input_len,
|
|||
static int test_bin(const char *value, unsigned char **buf, size_t *buflen)
|
||||
{
|
||||
long len;
|
||||
|
||||
*buflen = 0;
|
||||
if (!*value) {
|
||||
/*
|
||||
* Don't return NULL for zero length buffer.
|
||||
|
|
Loading…
Reference in a new issue