summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/symbol.c
diff options
context:
space:
mode:
authorMartin Liška <mliska@suse.cz>2015-05-26 11:41:37 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-05-27 12:21:45 -0300
commit5bcaaca3e4d15ce39008a0b9c431c0ac4be784bd (patch)
tree4f4773e6feed5897eb6cc2ace8fe359bbf7c77c7 /tools/perf/util/symbol.c
parent4bb7123dcfa7aa1d963ad4a8f01b88d54a2bb873 (diff)
downloadblackbird-op-linux-5bcaaca3e4d15ce39008a0b9c431c0ac4be784bd.tar.gz
blackbird-op-linux-5bcaaca3e4d15ce39008a0b9c431c0ac4be784bd.zip
perf tools: Assign default value for some pointers
Assign default value for pointers that are identified by the compiler as non-initialized. Signed-off-by: Martin Liska <mliska@suse.cz> Acked-by: Ingo Molnar <mingo@kernel.org> Link: http://lkml.kernel.org/r/5564393C.1090104@suse.cz Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/symbol.c')
-rw-r--r--tools/perf/util/symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index 00b6b17e74a7..b9e3eb581884 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -398,7 +398,7 @@ static struct symbol *symbols__find_by_name(struct rb_root *symbols,
const char *name)
{
struct rb_node *n;
- struct symbol_name_rb_node *s;
+ struct symbol_name_rb_node *s = NULL;
if (symbols == NULL)
return NULL;
OpenPOWER on IntegriCloud