Compiler error

This commit is contained in:
Andras Fekete
2023-03-31 11:22:58 -04:00
parent 9f41ed8c72
commit 7138b66b5e

View File

@@ -2364,7 +2364,7 @@ char* wolfSSL_i2s_ASN1_STRING(WOLFSSL_v3_ext_method *method,
}
/* Handle 0 length data separately. */
else if (s->length == 0) {
ret = XMALLOC(1, NULL, DYNAMIC_TYPE_TMP_BUFFER);
ret = (char *)XMALLOC(1, NULL, DYNAMIC_TYPE_TMP_BUFFER);
if (ret != NULL) {
ret[0] = '\0';
}