X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Fmarker.h;h=73c7f24796c7d62d5c5e6bca0a20656e0d2e4d8a;hb=dcf9684256679564d4917b78448381a0d499bce5;hp=e3d4cd3d96b8706860563cba05fdcff998d212ea;hpb=8c6a42767875ea167d04ce527afb7baf94963ecc;p=lttv.git diff --git a/ltt/branches/poly/ltt/marker.h b/ltt/branches/poly/ltt/marker.h index e3d4cd3d..73c7f247 100644 --- a/ltt/branches/poly/ltt/marker.h +++ b/ltt/branches/poly/ltt/marker.h @@ -52,7 +52,7 @@ static inline guint16 marker_get_id_from_info(LttTrace *trace, 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); }