Commit c892e221 authored by Michael Smith's avatar Michael Smith

Allow a NULL filename in log_set_filename, since it's allowed elsewhere.

Thanks Coverity!


svn path=/icecast/trunk/log/; revision=10971
parent 0320ef97
......@@ -198,7 +198,8 @@ int log_set_filename(int id, const char *filename)
{
if (id < 0 || id >= LOG_MAXLOGS)
return LOG_EINSANE;
if (!strcmp(filename, "") || loglist [id] . in_use == 0)
/* NULL filename is ok, empty filename is not. */
if ((filename && !strcmp(filename, "")) || loglist [id] . in_use == 0)
return LOG_EINSANE;
_lock_logger();
if (loglist [id] . filename)
......
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