summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-03-30 15:46:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-03-30 15:57:05 +0100
commit1fff5597b85d207b0bb51753c259c2b89d1528ed (patch)
tree6dbd2400627240ad38fa9cfa3ecaf61214fafb29
parentb2db4550ddc21b16d8b64a558d9dd0f578aed70c (diff)
fix uninitialized bits
-rw-r--r--sal/qa/osl/condition/osl_Condition.cxx5
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 3d1036e2a..6f19e83a0 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;
}