diff options
author | Martin Liška <mliska@suse.cz> | 2015-05-26 16:41:37 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-05-27 17:21:45 +0200 |
commit | 5bcaaca3e4d15ce39008a0b9c431c0ac4be784bd (patch) | |
tree | 4f4773e6feed5897eb6cc2ace8fe359bbf7c77c7 /tools/perf/arch/common.c | |
parent | perf tools: Use maps__first()/map__next() (diff) | |
download | linux-5bcaaca3e4d15ce39008a0b9c431c0ac4be784bd.tar.xz 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/arch/common.c')
-rw-r--r-- | tools/perf/arch/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/arch/common.c b/tools/perf/arch/common.c index 49776f190abf..b7bb42c44694 100644 --- a/tools/perf/arch/common.c +++ b/tools/perf/arch/common.c @@ -61,7 +61,7 @@ const char *const mips_triplets[] = { static bool lookup_path(char *name) { bool found = false; - char *path, *tmp; + char *path, *tmp = NULL; char buf[PATH_MAX]; char *env = getenv("PATH"); |