diff options
author | Julia Lawall <julia@diku.dk> | 2012-04-05 18:47:59 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2012-04-25 07:35:25 -0400 |
commit | 54a3625829c9de60f4acbd0efe3ec4201b174fd6 (patch) | |
tree | 29c638f4cc3628330af625012f99f650b4e8012b /tools | |
parent | 5205aec960514089d12dd8e35f2a82584b8e6172 (diff) |
perf/events: Correct size given to memset
This is a forward port of commit 5660ce34241ab
perf tools: Correct size given to memset
written by Julia Lawall and forward ported by Steven Rostedt.
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Arun Sharma <asharma@fb.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index f012395d16fb..16da20c552bc 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
@@ -2076,7 +2076,7 @@ process_fields(struct event_format *event, struct print_flag_sym **list, char ** | |||
2076 | goto out_free; | 2076 | goto out_free; |
2077 | 2077 | ||
2078 | field = malloc_or_die(sizeof(*field)); | 2078 | field = malloc_or_die(sizeof(*field)); |
2079 | memset(field, 0, sizeof(field)); | 2079 | memset(field, 0, sizeof(*field)); |
2080 | 2080 | ||
2081 | value = arg_eval(arg); | 2081 | value = arg_eval(arg); |
2082 | field->value = strdup(value); | 2082 | field->value = strdup(value); |