summaryrefslogtreecommitdiff
path: root/src/benchmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmark.c')
-rw-r--r--src/benchmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/benchmark.c b/src/benchmark.c
index befc81f349..015110fa03 100644
--- a/src/benchmark.c
+++ b/src/benchmark.c
@@ -62,7 +62,7 @@ value2human (unsigned long bytes, double time, double *data, double *speed,
void start_benchmark(struct benchmark_st * st)
{
- memset(st, 0, sizeof(st));
+ memset(st, 0, sizeof(*st));
st->old_handler = signal (SIGALRM, alarm_handler);
gettime (&st->start);
benchmark_must_finish = 0;