diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index f33326980583f20ab91a8107cad4855fa0886e1e..c6603f3bb4303a15ce0de3d09079f0b9fadecdef 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c @@ -880,7 +880,7 @@ static void __add_kprobe_trace_events(struct perf_probe_event *pev, int ntevs, bool allow_suffix) { int i, fd; - struct kprobe_trace_event *tev; + struct kprobe_trace_event *tev = NULL; char buf[64]; const char *event, *group; struct strlist *namelist;