| From | Adrian Hunter <> | Subject | [PATCH 04/19] perf evsel: Add missing decrement in id sample parsing | Date | Fri, 18 Oct 2013 15:29:01 +0300 |
| |
The final array decrement in id sample parsing is missing, which may trip up the next person adding a sample format, so add it in.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> --- tools/perf/util/evsel.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 1bb4f19..e09c7e6 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -1220,6 +1220,7 @@ static int perf_evsel__parse_id_sample(const struct perf_evsel *evsel, sample->pid = u.val32[0]; sample->tid = u.val32[1]; + array--; } return 0; -- 1.7.11.7
|