[vlc-commits] Fix read of unitialized variable (cid #1125395)

Rémi Duraffort git at videolan.org
Mon Nov 25 19:22:50 CET 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Nov 25 19:02:16 2013 +0100| [aacb2a82b44652eacee1d12932e48bf438dd1855] | committer: Rémi Duraffort

Fix read of unitialized variable (cid #1125395)

Even if should not have any impact during execution.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aacb2a82b44652eacee1d12932e48bf438dd1855
---

 modules/mux/ogg.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/mux/ogg.c b/modules/mux/ogg.c
index 34da41c..88632bc 100644
--- a/modules/mux/ogg.c
+++ b/modules/mux/ogg.c
@@ -692,8 +692,7 @@ static block_t *OggStreamPageOut( sout_mux_t *p_mux,
 
 static void OggGetSkeletonIndex( uint8_t **pp_buffer, long *pi_size, ogg_stream_t *p_stream )
 {
-    uint8_t *p_buffer = *pp_buffer;
-    p_buffer = calloc( INDEX_BASE_SIZE + p_stream->skeleton.i_index_size, sizeof(uint8_t) );
+    uint8_t *p_buffer = calloc( INDEX_BASE_SIZE + p_stream->skeleton.i_index_size, sizeof(uint8_t) );
     if ( !p_buffer ) return;
     *pp_buffer = p_buffer;
 



More information about the vlc-commits mailing list