diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-03-16 18:28:46 -0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-03-16 22:51:00 +0100 |
commit | 00909e955125e90a6ebb34671c56c4c851e62951 (patch) | |
tree | b34dd00db05ec69cf74125eaac7b83db6b6fb2c8 | |
parent | d0cb4260f899d07462d49fc67e29f2438dbaca2f (diff) | |
download | linux-3.10-00909e955125e90a6ebb34671c56c4c851e62951.tar.gz linux-3.10-00909e955125e90a6ebb34671c56c4c851e62951.tar.bz2 linux-3.10-00909e955125e90a6ebb34671c56c4c851e62951.zip |
perf top: Add missing initialization to zero
The dso_short_width has to start as zero, as we're calculating
the maximum short DSO name length, somehow I missed this one.
Reported-by: Frédéric Weisbecker <fweisbec@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1268774926-27488-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | tools/perf/builtin-top.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 8364c8aba19..1f529321607 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -455,7 +455,7 @@ static void print_sym_table(void) struct sym_entry *syme, *n; struct rb_root tmp = RB_ROOT; struct rb_node *nd; - int sym_width = 0, dso_width = 0, dso_short_width; + int sym_width = 0, dso_width = 0, dso_short_width = 0; const int win_width = winsize.ws_col - 1; samples = userspace_samples = 0; |