Check for FindNextFile when defining it rather than FindFirstFile
[oweals/openssl.git] / crypto / asn1 / a_strex.c
index 264ebf2393a2e7a3ab986fd25d8810f5bc7b1bc1..8fb4193bc0b299b9a73a294b3dde7b150a012bcd 100644 (file)
@@ -567,6 +567,8 @@ int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in)
        if(mbflag == -1) return -1;
        mbflag |= MBSTRING_FLAG;
        stmp.data = NULL;
+       stmp.length = 0;
+       stmp.flags = 0;
        ret = ASN1_mbstring_copy(&str, in->data, in->length, mbflag, B_ASN1_UTF8STRING);
        if(ret < 0) return ret;
        *out = stmp.data;