]> rtime.felk.cvut.cz Git - frescor/frsh-forb.git/commitdiff
Fix uninitialized memory bug that caused the test to fail sometimes
authorMichal Sojka <sojka@os.inf.tu-dresden.de>
Tue, 7 Feb 2012 22:49:17 +0000 (23:49 +0100)
committerMichal Sojka <sojka@os.inf.tu-dresden.de>
Tue, 7 Feb 2012 22:49:17 +0000 (23:49 +0100)
src/fwp/fwp/lib/fwp/tests/fwp_vrestest/fwp_vrestest1.c

index 4fcbd89ea64dcf568ea3e84cc067a92b418a8f79..1460775e7676bb06f019f14e1a0beae239d31dc5 100644 (file)
@@ -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;