Skip to content

Commit

Permalink
examples/perfcounter/perf_writer.c: fix memset
Browse files Browse the repository at this point in the history
Signed-off-by: Aurelien Aptel <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>
  • Loading branch information
aaptel authored and jrasamba committed Mar 30, 2016
1 parent 3cc3406 commit 0fa9f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/perfcounter/perf_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0fa9f34

Please sign in to comment.