[vlc-devel] commit: libvlc: fix calloc usage. ( Rémi Duraffort )

git version control git at videolan.org
Wed Jan 20 09:04:38 CET 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Jan 19 14:32:31 2010 +0100| [478ff4e11c65ce9a84539d7cdb9b8ee3048b0734] | committer: Rémi Duraffort 

libvlc: fix calloc usage.

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

 src/control/media.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/control/media.c b/src/control/media.c
index cdcfb1c..3d8da31 100644
--- a/src/control/media.c
+++ b/src/control/media.c
@@ -252,7 +252,7 @@ libvlc_media_t * libvlc_media_new_from_input_item(
         return NULL;
     }
 
-    p_md = calloc( sizeof(libvlc_media_t), 1 );
+    p_md = calloc( 1, sizeof(libvlc_media_t) );
     if( !p_md )
     {
         libvlc_exception_raise( p_e );




More information about the vlc-devel mailing list