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

net_Listen: don't print NULL

parent 33fbd253
......@@ -136,12 +136,14 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
hints.ai_protocol = protocol;
hints.ai_flags = AI_PASSIVE;
msg_Dbg (p_this, "net: listening to %s port %d", psz_host, i_port);
msg_Dbg (p_this, "net: listening to %s port %d",
(psz_host != NULL) ? psz_host : "*", i_port);
int i_val = vlc_getaddrinfo (p_this, psz_host, i_port, &hints, &res);
if (i_val)
msg_Err (p_this, "Cannot resolve %s port %d : %s", psz_host, i_port,
msg_Err (p_this, "Cannot resolve %s port %d : %s",
(psz_host != NULL) ? psz_host : "", i_port,
gai_strerror (i_val));
return 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