From abf96a71280b18651159cbb7a532ed0edb416f49 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 8 Aug 2025 15:39:45 +0800 Subject: [PATCH] Update line_profiler.c --- src/interpreter/line_profiler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/interpreter/line_profiler.c b/src/interpreter/line_profiler.c index 1fab8381..44cd2f26 100644 --- a/src/interpreter/line_profiler.c +++ b/src/interpreter/line_profiler.c @@ -87,9 +87,11 @@ c11_string* LineProfiler__get_report(LineProfiler* self) { c11_sbuf__write_quoted(&sbuf, src_name, '"'); c11_sbuf__write_cstr(&sbuf, ": ["); LineRecord* lines = (LineRecord*)kv.value; + bool is_first = true; for(int j = 1; j < line_record_length; j++) { // [, ,