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

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