Remove warnings from clang --analyze

This commit is contained in:
Zhi Guan
2024-06-18 09:53:15 +08:00
parent 567604210a
commit 572ab07824
6 changed files with 7 additions and 12 deletions

View File

@@ -1426,7 +1426,7 @@ int x509_crl_sign_to_der(
uint8_t **out, size_t *outlen)
{
size_t len = 0;
uint8_t *tbs;
uint8_t *tbs = NULL;
uint8_t sig[SM2_MAX_SIGNATURE_SIZE];
size_t siglen = SM2_signature_typical_size;