diff options
| -rw-r--r-- | tools/perf/builtin-bench.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-bench.c b/tools/perf/builtin-bench.c index f600b74216da..1e6e77710545 100644 --- a/tools/perf/builtin-bench.c +++ b/tools/perf/builtin-bench.c | |||
| @@ -86,7 +86,7 @@ static struct collection collections[] = { | |||
| 86 | 86 | ||
| 87 | /* Iterate over all benchmarks within a collection: */ | 87 | /* Iterate over all benchmarks within a collection: */ |
| 88 | #define for_each_bench(coll, bench) \ | 88 | #define for_each_bench(coll, bench) \ |
| 89 | for (bench = coll->benchmarks; bench->name; bench++) | 89 | for (bench = coll->benchmarks; bench && bench->name; bench++) |
| 90 | 90 | ||
| 91 | static void dump_benchmarks(struct collection *coll) | 91 | static void dump_benchmarks(struct collection *coll) |
| 92 | { | 92 | { |
