diff options
author | Volker Lendecke <vl@samba.org> | 2020-02-13 16:44:38 +0100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2020-02-19 09:38:39 +0000 |
commit | 2a5002d9688ff679dd28a4abc8741edf96ecf342 (patch) | |
tree | 14360593ba59558e552547db6b22450c169001a4 | |
parent | 9ee1320049cf148a2bb102bbdee4a4bcc24c0de1 (diff) | |
download | samba-2a5002d9688ff679dd28a4abc8741edf96ecf342.tar.gz |
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 <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
-rw-r--r-- | lib/util/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |