diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-06-01 16:42:02 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-06-01 16:42:02 +0200 |
commit | eaad59046eb13534548c45b0d107fdbdbc007d0d (patch) | |
tree | 90eb4ff3d33962c33c7b8db658c6da70fa731bd7 | |
parent | b948e80596ba5810043ef53072a8f712a07bcafc (diff) | |
download | gnutls-eaad59046eb13534548c45b0d107fdbdbc007d0d.tar.gz |
properly initialize benchmarks.
-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; |