summaryrefslogtreecommitdiff
path: root/examples/perfcounter
diff options
context:
space:
mode:
authorAurelien Aptel <aaptel@suse.com>2016-03-29 17:30:36 +0200
committerJeremy Allison <jra@samba.org>2016-03-30 18:26:09 +0200
commit0fa9f347fd401baad6e2b65d5e4706f458cf5ba4 (patch)
tree705dc183e5ff2095a22fe7fc00cb0533feea844d /examples/perfcounter
parent3cc34062200907fe2dd539565039cb2c7cb76a6e (diff)
downloadsamba-0fa9f347fd401baad6e2b65d5e4706f458cf5ba4.tar.gz
examples/perfcounter/perf_writer.c: fix memset
Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'examples/perfcounter')
-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);