fix warning
[openssl.git] / test / evp_test.c
index bc3e6dd97ce7683b273c13e54bb05ac700f2aefa..64b4f9385805b5d203b8029725e3eb61af04e6a8 100644 (file)
@@ -1,4 +1,3 @@
-/* evp_test.c */
 /*
  * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
  * project.
@@ -170,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.