Commit c9a911ee authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

dsm: sd: Check for malloc failure

parent 68b84095
...@@ -149,6 +149,8 @@ int bdsm_SdOpen (vlc_object_t *p_this) ...@@ -149,6 +149,8 @@ int bdsm_SdOpen (vlc_object_t *p_this)
p_sd->p_sys = p_sys; p_sd->p_sys = p_sys;
p_sys->p_entry_item_list = vlc_array_new(); 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(); p_sys->p_ns = netbios_ns_new();
if( p_sys->p_ns == NULL ) if( p_sys->p_ns == NULL )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment