From: Michal Sojka Date: Tue, 7 Feb 2012 22:49:17 +0000 (+0100) Subject: Fix uninitialized memory bug that caused the test to fail sometimes X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/frsh-forb.git/commitdiff_plain/8a3663685463e3808d80acb30204642f799c040b Fix uninitialized memory bug that caused the test to fail sometimes --- diff --git a/src/fwp/fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest1.c b/src/fwp/fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest1.c index 4fcbd89e..1460775e 100644 --- a/src/fwp/fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest1.c +++ b/src/fwp/fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest1.c @@ -40,6 +40,7 @@ WVTEST_MAIN("FWP VRES single thread") fwp_endpoint_attr_init(&attr); + memset(&vparam1, 0, sizeof(vparam1)); vparam1.ac_id = FWP_AC_VO; vparam1.budget = 100; vparam1.period.tv_sec = 2;