Commit dd0524ce authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Avoid dummy error messages

parent ddff0fb8
...@@ -353,14 +353,16 @@ int __net_ConnectUDP( vlc_object_t *p_this, const char *psz_host, int i_port, ...@@ -353,14 +353,16 @@ int __net_ConnectUDP( vlc_object_t *p_this, const char *psz_host, int i_port,
str = var_CreateGetString (p_this, "miface"); str = var_CreateGetString (p_this, "miface");
if (str != NULL) if (str != NULL)
{ {
net_SetMcastOut (p_this, fd, ptr->ai_family, str, NULL); if (*str)
net_SetMcastOut (p_this, fd, ptr->ai_family, str, NULL);
free (str); free (str);
} }
str = var_CreateGetString (p_this, "miface-addr"); str = var_CreateGetString (p_this, "miface-addr");
if (str != NULL) if (str != NULL)
{ {
net_SetMcastOut (p_this, fd, ptr->ai_family, NULL, str); if (*str)
net_SetMcastOut (p_this, fd, ptr->ai_family, NULL, str);
free (str); free (str);
} }
......
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