aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-parse.c
diff options
context:
space:
mode:
authorMartin Liška <mliska@suse.cz>2015-05-26 10:41:37 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-05-27 11:21:45 -0400
commit5bcaaca3e4d15ce39008a0b9c431c0ac4be784bd (patch)
tree4f4773e6feed5897eb6cc2ace8fe359bbf7c77c7 /tools/perf/util/trace-event-parse.c
parent4bb7123dcfa7aa1d963ad4a8f01b88d54a2bb873 (diff)
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/trace-event-parse.c')
-rw-r--r--tools/perf/util/trace-event-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c
index 25d6c737be3e..d4957418657e 100644
--- a/tools/perf/util/trace-event-parse.c
+++ b/tools/perf/util/trace-event-parse.c
@@ -173,7 +173,7 @@ void parse_ftrace_printk(struct pevent *pevent,
173 char *line; 173 char *line;
174 char *next = NULL; 174 char *next = NULL;
175 char *addr_str; 175 char *addr_str;
176 char *fmt; 176 char *fmt = NULL;
177 177
178 line = strtok_r(file, "\n", &next); 178 line = strtok_r(file, "\n", &next);
179 while (line) { 179 while (line) {