From 2a5002d9688ff679dd28a4abc8741edf96ecf342 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 13 Feb 2020 16:44:38 +0100 Subject: 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 --- lib/util/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.1