diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-04-06 17:28:37 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-04-06 17:28:37 +0200 |
commit | ee28f046a7d389a4de305297abb065a9fddfb928 (patch) | |
tree | 97427439a21281fddf878420696c1385e420ad6e | |
parent | 8d21ca2e3daf37d8afe7b678edb0aa2e47a468ef (diff) |
fix uninitialized field (valgrind)
Change-Id: I2df2a37335e68e90836205b44a563fed5dface75
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afb-apis.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |