perf events: Fix false positive build warning with older GCC's
[safe/jmp/linux-2.6] / tools / perf / util / probe-event.c
index f333269..c6603f3 100644 (file)
@@ -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;