From a87c518babfe81395a63b6b023245d8359ca1b96 Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Wed, 18 Mar 2026 11:35:09 +0800 Subject: [PATCH] Fix typo in prof_log_rep_check: use != instead of || for alloc_count The condition incorrectly used 'alloc_count || 0' which was likely a typo for 'alloc_count != 0'. While both evaluate similarly for the zero/non-zero case, the fix ensures consistency with bt_count and thr_count checks and uses the correct comparison operator. --- src/prof_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prof_log.c b/src/prof_log.c index 64b363bb..74f1372f 100644 --- a/src/prof_log.c +++ b/src/prof_log.c @@ -375,7 +375,7 @@ prof_log_rep_check(void) { size_t alloc_count = prof_log_alloc_count(); if (prof_logging_state == prof_logging_state_stopped) { - if (bt_count != 0 || thr_count != 0 || alloc_count || 0) { + if (bt_count != 0 || thr_count != 0 || alloc_count != 0) { return true; } }