[PATCH 04/12] Unittest fix


Ian Bell <IBell@...>
 

From d61b179fdf90b35dd97d7c89c2996003d3521dcd Mon Sep 17 00:00:00 2001

Message-Id: <d61b179fdf90b35dd97d7c89c2996003d3521dcd.1351009358.git.ibell@...>

In-Reply-To: <180145dfd9a175bb1b824b63df34a41b7e97d425.1351009358.git.ibell@...>

References: <180145dfd9a175bb1b824b63df34a41b7e97d425.1351009358.git.ibell@...>

From: Ian Bell <ibell@...>

Date: Tue, 23 Oct 2012 14:30:00 +0100

Subject: [PATCH 04/12] Unittest fix

 

Fixed an uninitialized variable in a unittest

 

Signed-off-by: Ian Bell <ibell@...>

---

mama/c_cpp/src/gunittest/c/datetimetest.cpp |    2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

 

diff --git a/mama/c_cpp/src/gunittest/c/datetimetest.cpp b/mama/c_cpp/src/gunittest/c/datetimetest.cpp

index 541cfb5..8589815 100644

--- a/mama/c_cpp/src/gunittest/c/datetimetest.cpp

+++ b/mama/c_cpp/src/gunittest/c/datetimetest.cpp

@@ -99,7 +99,7 @@ TEST_F(MamaDateTimeTestC, CompareDates)

               // Format a string using today's date and a time, this should be as "2010-07-04 10:00:00.000"

               const char *time = "10:00:00.000000";

               char completeDateTime[100] = "";

-    mamaDateTime m_cDateTime;

+    mamaDateTime m_cDateTime = NULL;

               sprintf(completeDateTime, "%s %s", stringDate, time);

                // Set the date from this string

--

1.7.9.5

 




Please consider the environment before printing this e-mail.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy.

Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.