From ee28f046a7d389a4de305297abb065a9fddfb928 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Wed, 6 Apr 2016 17:28:37 +0200 Subject: [PATCH] fix uninitialized field (valgrind) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I2df2a37335e68e90836205b44a563fed5dface75 Signed-off-by: José Bollo --- src/afb-apis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/afb-apis.c b/src/afb-apis.c index 9dcb1809..9b2df3f3 100644 --- a/src/afb-apis.c +++ b/src/afb-apis.c @@ -311,6 +311,7 @@ static void trapping_handle(struct afb_req req, void(*cb)(struct afb_req)) timerset = 1; /* TODO: check statuses */ sevp.sigev_notify = SIGEV_THREAD_ID; sevp.sigev_signo = SIGALRM; + sevp.sigev_value.sival_ptr = NULL; #if defined(sigev_notify_thread_id) sevp.sigev_notify_thread_id = (pid_t)syscall(SYS_gettid); #else -- 2.16.6