aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-06-09 00:09:24 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-07 23:36:32 +0200
commitf022afea77ced5067f511530dd8ff137967db1d9 (patch)
treedc053b304bfad53bdc0e1f907431a14cf96bdb99
parent426d8c84c37064eef93bbcfaffd886d00a9a4ee8 (diff)
downloadffmpeg-f022afea77ced5067f511530dd8ff137967db1d9.tar.gz
avformat/tls_schannel: Initialize ret
Fixes: CID1591881 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/tls_schannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tls_schannel.c b/libavformat/tls_schannel.c
index 7265a9794d..ae9a311d2a 100644
--- a/libavformat/tls_schannel.c
+++ b/libavformat/tls_schannel.c
@@ -391,7 +391,7 @@ static int tls_read(URLContext *h, uint8_t *buf, int len)
SECURITY_STATUS sspi_ret = SEC_E_OK;
SecBuffer inbuf[4];
SecBufferDesc inbuf_desc;
- int size, ret;
+ int size, ret = 0;
int min_enc_buf_size = len + SCHANNEL_FREE_BUFFER_SIZE;
/* If we have some left-over data from previous network activity,