[PATCH 1/6] perf newt: Initialize choice variable

From: Arnaldo Carvalho de Melo
Date: Thu Mar 25 2010 - 18:59:57 EST


From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

cc1: warnings being treated as errors
util/newt.c: In function âperf_session__browse_histsâ:
util/newt.c:442: error: âchoiceâ may be used uninitialized in this function

Note: Ingo, you may want to fold this with:

[PATCH v2 6/6] perf report: Pass the DSO to 'perf annotate'

Cc: FrÃdÃric Weisbecker <fweisbec@xxxxxxxxx>
Cc: Mike Galbraith <efault@xxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
tools/perf/util/newt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c
index 12572b5..e99bcc8 100644
--- a/tools/perf/util/newt.c
+++ b/tools/perf/util/newt.c
@@ -439,7 +439,7 @@ void perf_session__browse_hists(struct rb_root *hists, u64 session_total,
while (1) {
char annotate[512];
const char *options[2];
- int nr_options = 0, choice;
+ int nr_options = 0, choice = 0;

newtFormRun(form, &es);
if (es.reason == NEWT_EXIT_HOTKEY) {
--
1.6.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/