fix build bread due to Werror=maybe-uninitialized 01/295101/1 accepted/tizen_unified_dev accepted/tizen/unified/20231226.154455 accepted/tizen/unified/20231226.180114 accepted/tizen/unified/dev/20230726.115521
authorDongsun Lee <ds73.lee@samsung.com>
Mon, 3 Jul 2023 02:28:44 +0000 (11:28 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Mon, 3 Jul 2023 02:28:44 +0000 (11:28 +0900)
Change-Id: I83b4f02a9ac1bd11d212323407307e8d5ff0bf44

tests/api_test.cpp

index f0bb272..26159bb 100644 (file)
@@ -225,7 +225,7 @@ POSITIVE_TEST_CASE(test05_dcm_create_signature)
     void *ctx;
     char *signature;
     size_t signature_len;
-    char data[32];
+    char data[32] = {0,};
 
     ret = dcm_create_signature(NULL, DCM_DIGEST_SHA256, data, sizeof(data), &signature, &signature_len);
     BOOST_REQUIRE_EQUAL(ret, DCM_ERROR_INVALID_PARAMETER);