From 4e4d1e13d6aeb925c04611dd30626319e64f0784 Mon Sep 17 00:00:00 2001 From: Olivier Girondel Date: Mon, 20 Jan 2014 16:43:58 +0100 Subject: (memcheck) Uninitialized structure in gen_challenge --- lib/erl_interface/src/connect/ei_connect.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/erl_interface') diff --git a/lib/erl_interface/src/connect/ei_connect.c b/lib/erl_interface/src/connect/ei_connect.c index 8f1f231b82..c9aa28812c 100644 --- a/lib/erl_interface/src/connect/ei_connect.c +++ b/lib/erl_interface/src/connect/ei_connect.c @@ -1161,6 +1161,7 @@ static unsigned int gen_challenge(void) struct utsname name; } s; + memset(&s, 0, sizeof(s)); gettimeofday(&s.tv, 0); uname(&s.name); s.cpu = clock(); -- cgit v1.2.3