[Libreoffice-commits] .: sal/qa
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Mar 30 07:57:52 PDT 2011
sal/qa/osl/condition/osl_Condition.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 1fff5597b85d207b0bb51753c259c2b89d1528ed
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Mar 30 15:46:45 2011 +0100
fix uninitialized bits
diff --git a/sal/qa/osl/condition/osl_Condition.cxx b/sal/qa/osl/condition/osl_Condition.cxx
index 3d1036e..6f19e83 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;
}
More information about the Libreoffice-commits
mailing list