mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-12-04 14:46:31 -05:00
corrected logic checking argument. Thanks to David Binderman for reporting
svn path=/icecast/trunk/log/; revision=18961
This commit is contained in:
parent
ad1543557e
commit
e9496a4e9c
@ -298,7 +298,7 @@ void log_flush(int log_id)
|
|||||||
|
|
||||||
void log_reopen(int log_id)
|
void log_reopen(int log_id)
|
||||||
{
|
{
|
||||||
if (log_id < 0 && log_id >= LOG_MAXLOGS)
|
if (log_id < 0 || log_id >= LOG_MAXLOGS)
|
||||||
return;
|
return;
|
||||||
if (loglist [log_id] . filename && loglist [log_id] . logfile)
|
if (loglist [log_id] . filename && loglist [log_id] . logfile)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user