From b0e9399206b330fcb2964e635cfb3c8dacce19a7 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Wed, 3 Jun 2009 21:48:40 +0200 Subject: [PATCH] --- yaml --- r: 147638 b: refs/heads/master c: 233f0b95ca3a0d1dcbd70bc7e519069a8e10d23e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/Documentation/perf_counter/builtin-top.c | 2 +- trunk/Documentation/perf_counter/util/parse-options.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 3c7ea7460429..819c8a75b447 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 18374ab76e3ec1cf1b0ca5a8d08e35cfc5d01669 +refs/heads/master: 233f0b95ca3a0d1dcbd70bc7e519069a8e10d23e diff --git a/trunk/Documentation/perf_counter/builtin-top.c b/trunk/Documentation/perf_counter/builtin-top.c index 16a618446d3f..7c907e25d82b 100644 --- a/trunk/Documentation/perf_counter/builtin-top.c +++ b/trunk/Documentation/perf_counter/builtin-top.c @@ -175,7 +175,7 @@ static void rb_insert_active_sym(struct rb_root *tree, struct sym_entry *se) static void print_sym_table(void) { - int printed, j; + int printed = 0, j; int counter; float events_per_sec = events/delay_secs; float kevents_per_sec = (events-userspace_events)/delay_secs; diff --git a/trunk/Documentation/perf_counter/util/parse-options.c b/trunk/Documentation/perf_counter/util/parse-options.c index b80abd9a99bc..551b6bc34e79 100644 --- a/trunk/Documentation/perf_counter/util/parse-options.c +++ b/trunk/Documentation/perf_counter/util/parse-options.c @@ -33,7 +33,7 @@ static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt, static int get_value(struct parse_opt_ctx_t *p, const struct option *opt, int flags) { - const char *s, *arg; + const char *s, *arg = NULL; const int unset = flags & OPT_UNSET; if (unset && p->opt)