[vlc-commits] Missing error check
Rémi Denis-Courmont
git at videolan.org
Fri Sep 28 17:12:47 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Sep 28 17:33:07 2012 +0300| [72a9cd361c2fc0376dbf008194b76f5d61d14aae] | committer: Rémi Denis-Courmont
Missing error check
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72a9cd361c2fc0376dbf008194b76f5d61d14aae
---
src/modules/modules.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/modules/modules.c b/src/modules/modules.c
index e124ae7..7855c88 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -252,7 +252,7 @@ module_t *vlc_module_load(vlc_object_t *p_this, const char *psz_capability,
/* Sort the modules and test them */
size_t count;
module_t **p_all = module_list_get (&count);
- p_list = malloc( count * sizeof( module_list_t ) );
+ p_list = xmalloc( count * sizeof( module_list_t ) );
/* Parse the module list for capabilities and probe each of them */
count = 0;
More information about the vlc-commits
mailing list