fix warning
authorDr. Stephen Henson <steve@openssl.org>
Fri, 29 Jan 2016 15:12:16 +0000 (15:12 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 30 Jan 2016 16:02:48 +0000 (16:02 +0000)
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
test/evp_test.c

index 326ed0d..64b4f93 100644 (file)
@@ -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.