Module: xenomai-forge
Branch: next
Commit: 12c1f524359eb132862d0b6ba4e1ac629ca3b554
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=12c1f524359eb132862d0b6ba4e1ac629ca3b554

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri May 10 12:21:02 2013 +0200

copperplate/timerobj: clear sigevent upon creation (valgrind)

---

 lib/copperplate/timerobj.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/copperplate/timerobj.c b/lib/copperplate/timerobj.c
index 91b483d..ce778d4 100644
--- a/lib/copperplate/timerobj.c
+++ b/lib/copperplate/timerobj.c
@@ -98,6 +98,7 @@ static inline int timerobj_init_corespec(struct timerobj 
*tmobj)
        struct sigevent sev;
        int ret;
 
+       memset(&sev, 0, sizeof(sev));
        sev.sigev_notify = SIGEV_THREAD_ID;
        sev.sigev_signo = SIGALRM;
        sev.sigev_notify_thread_id = svpid;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to