vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Fri Mar 6 15:12:41 2015 +0100| [c9a911ee96c551ec218ebb52b224c763a3739036] | committer: Hugo Beauzée-Luyssen
dsm: sd: Check for malloc failure > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c9a911ee96c551ec218ebb52b224c763a3739036 --- modules/access/dsm/sd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/access/dsm/sd.c b/modules/access/dsm/sd.c index d72a048..af4f50b 100644 --- a/modules/access/dsm/sd.c +++ b/modules/access/dsm/sd.c @@ -149,6 +149,8 @@ int bdsm_SdOpen (vlc_object_t *p_this) p_sd->p_sys = p_sys; p_sys->p_entry_item_list = vlc_array_new(); + if ( p_sys->p_entry_item_list == NULL ) + return VLC_ENOMEM; p_sys->p_ns = netbios_ns_new(); if( p_sys->p_ns == NULL ) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
