Fix build break.
authorDan Mihai <Daniel.Mihai@microsoft.com>
Sun, 1 Jan 2017 10:46:39 +0000 (02:46 -0800)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Sun, 1 Jan 2017 16:36:55 +0000 (16:36 +0000)
Fix conflict between recent commits
1f885a36f6258373bef2c08c46d12b3b9d615551
d4f573ea1f2a0089fb7d53980ac39c39673391cb

Change-Id: Ic740ab0a8c57810b4a5f0841a42905ae09052d88
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16031
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
resource/c_common/oic_malloc/test/linux/oic_malloc_tests.cpp

index 0a6db29..cead86b 100644 (file)
@@ -162,7 +162,7 @@ TEST_P(OICCallocFailTests, shouldFailOICCalloc)
 TEST(OICFreeAndSetToNull, FreeAndSetToNullPass1)
 {
     // Try to deallocate a block of memory
-    pBuffer = (uint8_t *)OICCalloc(1, 1);
+    uint8_t* pBuffer = (uint8_t *)OICCalloc(1, 1);
     OICFreeAndSetToNull((void**)&pBuffer);
     EXPECT_TRUE(NULL == pBuffer);
 }
@@ -170,7 +170,7 @@ TEST(OICFreeAndSetToNull, FreeAndSetToNullPass1)
 TEST(OICFreeAndSetToNull, FreeAndSetToNullPass2)
 {
     // Try to deallocate a block of NULL
-    pBuffer = NULL;
+    uint8_t* pBuffer = NULL;
     OICFreeAndSetToNull((void**)&pBuffer);
     EXPECT_TRUE(NULL == pBuffer);
 }