[FFmpeg-devel] [PATCH] libavformat/tls_securetransport: silence uninitialized value warning

Rodger Combs rodger.combs at gmail.com
Sun Oct 4 00:31:33 CEST 2015


---
 libavformat/tls_securetransport.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/tls_securetransport.c b/libavformat/tls_securetransport.c
index 73662d7..cdc7953 100644
--- a/libavformat/tls_securetransport.c
+++ b/libavformat/tls_securetransport.c
@@ -350,7 +350,7 @@ static int map_ssl_error(OSStatus status, size_t processed)
 static int tls_read(URLContext *h, uint8_t *buf, int size)
 {
     TLSContext *c = h->priv_data;
-    size_t processed;
+    size_t processed = 0;
     int ret = map_ssl_error(SSLRead(c->ssl_context, buf, size, &processed), processed);
     if (ret > 0)
         return ret;
@@ -362,7 +362,7 @@ static int tls_read(URLContext *h, uint8_t *buf, int size)
 static int tls_write(URLContext *h, const uint8_t *buf, int size)
 {
     TLSContext *c = h->priv_data;
-    size_t processed;
+    size_t processed = 0;
     int ret = map_ssl_error(SSLWrite(c->ssl_context, buf, size, &processed), processed);
     if (ret > 0)
         return ret;
-- 
2.6.0



More information about the ffmpeg-devel mailing list