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.
This commit is contained in:
Weixie Cui 2026-03-18 11:35:09 +08:00 committed by Guangli Dai
parent d758349ca4
commit a87c518bab

View file

@ -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;
}
}