diff options
Diffstat (limited to 'trace/control.c')
-rw-r--r-- | trace/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace/control.c b/trace/control.c index 9035846..6b32511 100644 --- a/trace/control.c +++ b/trace/control.c @@ -105,7 +105,7 @@ void trace_event_iter_init(TraceEventIter *iter, const char *pattern) TraceEvent *trace_event_iter_next(TraceEventIter *iter) { - while (iter->event < TRACE_EVENT_COUNT) { + while (trace_events[iter->event] != NULL) { TraceEvent *ev = trace_events[iter->event]; iter->event++; if (!iter->pattern || |