Commit 9c1a53ac authored by Rémi Duraffort's avatar Rémi Duraffort

Check the return value of services_discovery_GetServicesNames.

If mac users can test ... (evenif it's really simple)
parent 657ee94e
...@@ -382,6 +382,11 @@ ...@@ -382,6 +382,11 @@
char ** ppsz_name; char ** ppsz_name;
char ** ppsz_services = services_discovery_GetServicesNames( p_playlist, &ppsz_name ); char ** ppsz_services = services_discovery_GetServicesNames( p_playlist, &ppsz_name );
if( !ppsz_services )
{
vlc_object_release( p_playlist );
return;
}
for( i = 0; ppsz_services[i]; i++ ) for( i = 0; ppsz_services[i]; i++ )
{ {
......
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