[vlc-commits] renderer_discovery: psz_icon_uri can be NULL
Hugo Beauzée-Luyssen
git at videolan.org
Tue Jul 18 15:57:58 CEST 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jul 18 13:59:52 2017 +0200| [359f079967e1fd58eca5ce68f51ca0d75fcc9c8b] | committer: Hugo Beauzée-Luyssen
renderer_discovery: psz_icon_uri can be NULL
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=359f079967e1fd58eca5ce68f51ca0d75fcc9c8b
---
src/misc/renderer_discovery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/misc/renderer_discovery.c b/src/misc/renderer_discovery.c
index 0417ab1246..18c544a196 100644
--- a/src/misc/renderer_discovery.c
+++ b/src/misc/renderer_discovery.c
@@ -88,7 +88,7 @@ vlc_renderer_item_new(const char *psz_type, const char *psz_name,
psz_extra_sout != NULL ? psz_extra_sout : "") == -1)
goto error;
- if ((p_item->psz_icon_uri = strdup(psz_icon_uri)) == NULL)
+ if (psz_icon_uri && (p_item->psz_icon_uri = strdup(psz_icon_uri)) == NULL)
goto error;
if ((p_item->psz_demux_filter = strdup(psz_demux_filter)) == NULL)
More information about the vlc-commits
mailing list