Commit c903b7db authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix EINVAL

parent e2dedca1
......@@ -583,7 +583,11 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
* - ignore square brackets
*/
if( ( node == NULL ) || (node[0] == '\0' ) )
{
psz_node = NULL;
if( service == NULL )
service = "";
}
else
{
strncpy( psz_buf, node, NI_MAXHOST );
......
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