[vlc-commits] CAM: Missing initializer from earlier rework

Rémi Denis-Courmont git at videolan.org
Fri Mar 25 23:30:52 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 26 00:30:30 2011 +0200| [9e2188577a94070ac45f812813190409a7b7e69b] | committer: Rémi Denis-Courmont

CAM: Missing initializer from earlier rework

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

 modules/access/dvb/en50221.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/dvb/en50221.c b/modules/access/dvb/en50221.c
index c85f809..5716d47 100644
--- a/modules/access/dvb/en50221.c
+++ b/modules/access/dvb/en50221.c
@@ -1957,7 +1957,7 @@ cam_t *en50221_Init( vlc_object_t *obj, int fd )
         return NULL;
     }
 
-    cam_t *p_cam = malloc( sizeof( *p_cam ) );
+    cam_t *p_cam = calloc( 1, sizeof( *p_cam ) );
     if( unlikely(p_cam == NULL) )
         goto error;
 



More information about the vlc-commits mailing list