From ac54fe8875337ad3476e34432309616f3c9c06fa Mon Sep 17 00:00:00 2001 From: makejian Date: Fri, 25 Jul 2025 15:52:48 +0800 Subject: [PATCH] crypto/cryptosoft: fix aadlen used uninitialized warning Signed-off-by: makejian --- crypto/cryptosoft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/cryptosoft.c b/crypto/cryptosoft.c index cd34e5c207..6c149cf1b1 100644 --- a/crypto/cryptosoft.c +++ b/crypto/cryptosoft.c @@ -291,11 +291,11 @@ int swcr_authenc(FAR struct cryptop *crp) caddr_t buf = (caddr_t)crp->crp_buf; caddr_t aad = (caddr_t)crp->crp_aad; FAR uint32_t *blkp; + int aadlen = 0; int blksz = 0; int ivlen = 0; int iskip = 0; int oskip = 0; - int aadlen; int len; int i;