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 | 1fff5597b85d207b0bb51753c259c2b89d1528ed (patch) | |
tree | 6dbd2400627240ad38fa9cfa3ecaf61214fafb29 | |
parent | b2db4550ddc21b16d8b64a558d9dd0f578aed70c (diff) |
fix uninitialized bits
-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 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; } |