Commit fd2ee075 authored by Michael Smith's avatar Michael Smith

Fix segfault from called log functions before log was initialised.

svn path=/trunk/icecast/; revision=3316
parent 9414de16
......@@ -151,12 +151,12 @@ static int _start_listening(void)
static void _server_proc_init(void)
{
if (!_setup_socket()) {
ERROR1("Could not create listener socket on port %d", config_get_config()->port);
fprintf(stderr, "Could not create listener socket on port %d", config_get_config()->port);
return;
}
if (!_start_listening()) {
ERROR0("Failed trying to listen on server socket");
fprintf(stderr, "Failed trying to listen on server socket");
return;
}
}
......
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