diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-30 15:46:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-30 15:57:05 +0100 |
commit | f158ee729ca794f52f4a0d28b1c2420e2a1f6ede (patch) | |
tree | 19c89c01a6766f38073bf2d8212a4fa25db70cb0 /sal | |
parent | 92a2b2fbb09e08932d6c02be8d8e0d1c8c557aa4 (diff) |
fix uninitialized bits
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/osl/condition/osl_Condition.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sal/qa/osl/condition/osl_Condition.cxx b/sal/qa/osl/condition/osl_Condition.cxx index b8ee6df8164e..415f17f6a881 100644 --- a/sal/qa/osl/condition/osl_Condition.cxx +++ b/sal/qa/osl/condition/osl_Condition.cxx @@ -246,14 +246,15 @@ namespace osl_Condition void setUp( ) { - tv1 = (TimeValue*)malloc(sizeof(TimeValue)); + tv1 = new TimeValue; tv1->Seconds = 1; + tv1->Nanosec = 0; } void tearDown( ) { - free( tv1 ); + delete tv1; } |