commit | c1563e5474b979bbde59464fa67a927603f112b7 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Feb 26 14:03:05 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Feb 26 14:05:20 2020 +0100 |
tree | 3128cf6414b062d0b24fddc1e0b8e7fed3ee5919 | |
parent | fd2658c0c6a275b497c92de2fc8513e458d0f169 [diff] |
MINOR: wdt: always clear sigev_value to make valgrind happy In issue #471 it was reported that valgrind sometimes complains about timer_create() being called with uninitialized bytes. These are in fact the bits from sigev_value.sival_ptr that are not part of sival_int that are tagged as such, as valgrind has no way to know we're using the int instead of the ptr in the union. It's cheap to initialize the field so let's do it.