From: Nikos Mavrogiannopoulos Date: Thu, 13 Nov 2014 14:38:34 +0000 (+0100) Subject: _rnd_get_event: use memset to avoid valgrind complaints X-Git-Tag: gnutls_3_4_0~628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5fc19fe41eb69ea8ab52ed2cada3991ed5a8e39;p=thirdparty%2Fgnutls.git _rnd_get_event: use memset to avoid valgrind complaints --- diff --git a/lib/nettle/rnd-common.c b/lib/nettle/rnd-common.c index ea8c435c9f..c6407c78c1 100644 --- a/lib/nettle/rnd-common.c +++ b/lib/nettle/rnd-common.c @@ -59,6 +59,7 @@ void _rnd_get_event(struct event_st *e) { static unsigned count = 0; + memset(e, 0, sizeof(*e)); gettime(&e->now); #ifdef HAVE_GETRUSAGE