Commit 5bcaaca3 authored by Martin Liška's avatar Martin Liška Committed by Arnaldo Carvalho de Melo

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: default avatarMartin Liska <mliska@suse.cz>
Acked-by: default avatarIngo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/5564393C.1090104@suse.czSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 4bb7123d
...@@ -61,7 +61,7 @@ const char *const mips_triplets[] = { ...@@ -61,7 +61,7 @@ const char *const mips_triplets[] = {
static bool lookup_path(char *name) static bool lookup_path(char *name)
{ {
bool found = false; bool found = false;
char *path, *tmp; char *path, *tmp = NULL;
char buf[PATH_MAX]; char buf[PATH_MAX];
char *env = getenv("PATH"); char *env = getenv("PATH");
......
...@@ -398,7 +398,7 @@ static struct symbol *symbols__find_by_name(struct rb_root *symbols, ...@@ -398,7 +398,7 @@ static struct symbol *symbols__find_by_name(struct rb_root *symbols,
const char *name) const char *name)
{ {
struct rb_node *n; struct rb_node *n;
struct symbol_name_rb_node *s; struct symbol_name_rb_node *s = NULL;
if (symbols == NULL) if (symbols == NULL)
return NULL; return NULL;
......
...@@ -173,7 +173,7 @@ void parse_ftrace_printk(struct pevent *pevent, ...@@ -173,7 +173,7 @@ void parse_ftrace_printk(struct pevent *pevent,
char *line; char *line;
char *next = NULL; char *next = NULL;
char *addr_str; char *addr_str;
char *fmt; char *fmt = NULL;
line = strtok_r(file, "\n", &next); line = strtok_r(file, "\n", &next);
while (line) { while (line) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment