static inline struct marker_info *marker_get_info_from_id(LttTrace *trace,
guint16 id)
{
- if (unlikely(trace->markers->len < id))
+ if (unlikely(trace->markers->len <= id))
return NULL;
return &g_array_index(trace->markers, struct marker_info, id);
}