diff options
Diffstat (limited to 'cpp/src/tests/DispatcherTest.cpp')
-rw-r--r-- | cpp/src/tests/DispatcherTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/DispatcherTest.cpp b/cpp/src/tests/DispatcherTest.cpp index 8fdc3b9aea..6177e7bd11 100644 --- a/cpp/src/tests/DispatcherTest.cpp +++ b/cpp/src/tests/DispatcherTest.cpp @@ -170,10 +170,10 @@ int main(int /*argc*/, char** /*argv*/) rc = ::sigaction(SIGRTMIN, &sa,0); assert(rc == 0); - ::sigevent se={}; + ::sigevent se; + ::memset(&se, 0, sizeof(se)); // Clear to make valgrind happy (this *is* the neatest way to do this portably - sigh) se.sigev_notify = SIGEV_SIGNAL; se.sigev_signo = SIGRTMIN; - se.sigev_value.sival_ptr = 0; rc = ::timer_create(CLOCK_REALTIME, &se, &timer); assert(rc == 0); |