diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/callchain.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c index 98c5627f327b..a8e67aa9ef49 100644 --- a/tools/perf/util/callchain.c +++ b/tools/perf/util/callchain.c | |||
@@ -336,5 +336,7 @@ __append_chain(struct callchain_node *root, struct ip_callchain *chain, | |||
336 | void append_chain(struct callchain_node *root, struct ip_callchain *chain, | 336 | void append_chain(struct callchain_node *root, struct ip_callchain *chain, |
337 | struct symbol **syms) | 337 | struct symbol **syms) |
338 | { | 338 | { |
339 | if (!chain->nr) | ||
340 | return; | ||
339 | __append_chain_children(root, chain, syms, 0); | 341 | __append_chain_children(root, chain, syms, 0); |
340 | } | 342 | } |