diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/benchmark.c | 2 |
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; |