From: Frantisek Sumsal Date: Tue, 25 Nov 2025 17:40:10 +0000 (+0100) Subject: sd-journal: fix a copy-paste error X-Git-Tag: v259-rc2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ade882f16f67ffc7a9b73231e401e30bb61cbcfb;p=thirdparty%2Fsystemd.git sd-journal: fix a copy-paste error Dereference the Directory pointer in the debug message instead of the (probably already freed) JournalFile one. --- diff --git a/src/libsystemd/sd-journal/sd-journal.c b/src/libsystemd/sd-journal/sd-journal.c index d29d1ad1f71..696f336945b 100644 --- a/src/libsystemd/sd-journal/sd-journal.c +++ b/src/libsystemd/sd-journal/sd-journal.c @@ -3048,7 +3048,7 @@ static void process_q_overflow(sd_journal *j) { if (m->is_root) /* Never GC root directories */ continue; - log_debug("Directory '%s' hasn't been seen in this enumeration, removing.", f->path); + log_debug("Directory '%s' hasn't been seen in this enumeration, removing.", m->path); directory_free(m); }