diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2025-09-19 12:38:16 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2025-09-19 12:38:16 -0300 |
| commit | 72c181399b01bb4836d1fabaa9f5f6438c82178e (patch) | |
| tree | dc26895ce48babe0fcc239ca1e4ca407bde34bb9 /tools/lib | |
| parent | 48314d20fe467d6653783cbf5536cb2fcc9bdd7c (diff) | |
| parent | e8442d5b7bc6338d553040f5b1f7bd43f5ab30e0 (diff) | |
Merge remote-tracking branch 'torvalds/master' into perf-tools-next
To pick up the latest perf-tools batch sent by Namhyung Kim for
v6.17-rc7.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib')
| -rw-r--r-- | tools/lib/subcmd/help.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/lib/subcmd/help.c b/tools/lib/subcmd/help.c index 9ef569492560..ddaeb4eb3e24 100644 --- a/tools/lib/subcmd/help.c +++ b/tools/lib/subcmd/help.c @@ -75,6 +75,9 @@ void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes) size_t ci, cj, ei; int cmp; + if (!excludes->cnt) + return; + ci = cj = ei = 0; while (ci < cmds->cnt && ei < excludes->cnt) { cmp = strcmp(cmds->names[ci]->name, excludes->names[ei]->name); |