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>
This commit is contained in:
parent
d0cb4260f8
commit
00909e9551
1 changed files with 1 additions and 1 deletions
|
@ -455,7 +455,7 @@ static void print_sym_table(void)
|
||||||
struct sym_entry *syme, *n;
|
struct sym_entry *syme, *n;
|
||||||
struct rb_root tmp = RB_ROOT;
|
struct rb_root tmp = RB_ROOT;
|
||||||
struct rb_node *nd;
|
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;
|
const int win_width = winsize.ws_col - 1;
|
||||||
|
|
||||||
samples = userspace_samples = 0;
|
samples = userspace_samples = 0;
|
||||||
|
|
Loading…
Reference in a new issue