summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/perfcounter/perf_writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/perfcounter/perf_writer.c b/examples/perfcounter/perf_writer.c
index 4260f9595d1..054d9e8e41b 100644
--- a/examples/perfcounter/perf_writer.c
+++ b/examples/perfcounter/perf_writer.c
@@ -77,7 +77,7 @@ void output_perf_desc(PerfCounter counter, RuntimeSettings rt)
void initialize(PERF_DATA_BLOCK *data, RuntimeSettings *rt, int argc, char **argv)
{
memset(data, 0, sizeof(*data));
- memset(rt, 0, sizeof(*data));
+ memset(rt, 0, sizeof(*rt));
parse_flags(rt, argc, argv);
setup_file_paths(rt);