]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
_rnd_get_event: use memset to avoid valgrind complaints
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 13 Nov 2014 14:38:34 +0000 (15:38 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 13 Nov 2014 14:38:34 +0000 (15:38 +0100)
lib/nettle/rnd-common.c

index ea8c435c9f124d2b6b68334b47283f164f8f9bd5..c6407c78c15b01d892dd1ae7639efacf009ce9cc 100644 (file)
@@ -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