From: Volker Lendecke Date: Thu, 13 Feb 2020 15:44:38 +0000 (+0100) Subject: lib: Fix rotating nonstandard debug class log files X-Git-Tag: ldb-2.1.1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a5002d9688ff679dd28a4abc8741edf96ecf342;p=thirdparty%2Fsamba.git lib: Fix rotating nonstandard debug class log files Looking at the same pointer in the loop does not really make sense to me Signed-off-by: Volker Lendecke Reviewed-by: Martin Schwenke --- diff --git a/lib/util/debug.c b/lib/util/debug.c index 6f081d45110..d7449c5c690 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -1147,7 +1147,7 @@ bool reopen_logs_internal(void) oldumask = umask( 022 ); for (i = DBGC_ALL; i < debug_num_classes; i++) { - if (dbgc_config[DBGC_ALL].logfile != NULL) { + if (dbgc_config[i].logfile != NULL) { break; } }