[xiph-commits] r18961 - icecast/trunk/log

ph3-der-loewe at svn.xiph.org ph3-der-loewe at svn.xiph.org
Thu Jul 4 05:31:17 PDT 2013


Author: ph3-der-loewe
Date: 2013-07-04 05:31:17 -0700 (Thu, 04 Jul 2013)
New Revision: 18961

Modified:
   icecast/trunk/log/log.c
Log:
corrected logic checking argument. Thanks to David Binderman for reporting

Modified: icecast/trunk/log/log.c
===================================================================
--- icecast/trunk/log/log.c	2013-06-14 16:23:13 UTC (rev 18960)
+++ icecast/trunk/log/log.c	2013-07-04 12:31:17 UTC (rev 18961)
@@ -298,7 +298,7 @@
 
 void log_reopen(int log_id)
 {
-    if (log_id < 0 && log_id >= LOG_MAXLOGS)
+    if (log_id < 0 || log_id >= LOG_MAXLOGS)
         return;
     if (loglist [log_id] . filename && loglist [log_id] . logfile)
     {



More information about the commits mailing list