Skip to content

Commit

Permalink
Merge pull request iovisor#845 from affansyed/master
Browse files Browse the repository at this point in the history
Fix for issue 829 I reported
  • Loading branch information
4ast authored Dec 9, 2016
2 parents 3ce6d83 + ce1ce3f commit 1b10c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tracing/nodejs_http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <uapi/linux/ptrace.h>
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);
Expand Down

0 comments on commit 1b10c06

Please sign in to comment.