From 1297f07d8f824f70f8b087f9dd1dd6037d9d4a08 Mon Sep 17 00:00:00 2001 From: r00559040 Date: Tue, 22 Mar 2022 19:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: r00559040 --- appexecfwk_lite/appexecfwk_posix/src/BundleMgrTest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/appexecfwk_lite/appexecfwk_posix/src/BundleMgrTest.cpp b/appexecfwk_lite/appexecfwk_posix/src/BundleMgrTest.cpp index dd2ef6b51..39d7092bc 100755 --- a/appexecfwk_lite/appexecfwk_posix/src/BundleMgrTest.cpp +++ b/appexecfwk_lite/appexecfwk_posix/src/BundleMgrTest.cpp @@ -32,7 +32,7 @@ static sem_t g_sem; static string g_testPath; extern "C" { -void __attribute__((weak)) HOS_SystemInit(void){} + void __attribute__((weak)) HOS_SystemInit(void){} } /* callback */ @@ -52,8 +52,7 @@ static void TestBundleStateCallback(const uint8_t resultCode, const void *result static string GetCurDir() { string filePath = ""; - char *buffer; - if (!(buffer = getcwd(NULL, 0))) { + if (!(char *buffer = getcwd(NULL, 0))) { perror("get file path error"); } else { printf("Current Dir: %s\r\n", buffer); -- GitLab