From: Arnaldo Carvalho de Melo Date: Tue, 16 Mar 2010 21:28:46 +0000 (-0300) Subject: perf top: Add missing initialization to zero X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=00909e955125e90a6ebb34671c56c4c851e62951;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Arnaldo Carvalho de Melo Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: <1268774926-27488-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar --- diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 8364c8aba194..1f529321607e 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;