diff --git a/src/top_status_source.cc b/src/top_status_source.cc index 4a0dcaac..1c7c1d5e 100644 --- a/src/top_status_source.cc +++ b/src/top_status_source.cc @@ -103,7 +103,7 @@ struct user_msg_stmt { void top_status_source::update_user_msg() { - static user_msg_stmt um_stmt; + static thread_local user_msg_stmt um_stmt; auto& al = this->tss_fields[TSF_USER_MSG].get_value(); al.clear();