diff --git a/examples/tracing/nodejs_http_server.py b/examples/tracing/nodejs_http_server.py index 65957f43aba4..1017de563040 100755 --- a/examples/tracing/nodejs_http_server.py +++ b/examples/tracing/nodejs_http_server.py @@ -23,7 +23,7 @@ #include int do_trace(struct pt_regs *ctx) { uint64_t addr; - char path[128]; + char path[128]={0}; bpf_usdt_readarg(6, ctx, &addr); bpf_probe_read(&path, sizeof(path), (void *)addr); bpf_trace_printk("path:%s\\n", path);