diff --git a/frameworks/src/bundle_test_tool.cpp b/frameworks/src/bundle_test_tool.cpp index beb3c39bb3a5ee85053c63617134463d1a1e51d8..16c107bc7b6f2c4cfb09f13a1d7058719b0eb91b 100644 --- a/frameworks/src/bundle_test_tool.cpp +++ b/frameworks/src/bundle_test_tool.cpp @@ -2992,7 +2992,7 @@ ErrCode BundleTestTool::HandleBundleEventCallback() return OHOS::ERR_INVALID_VALUE; } seteuid(uid); - ErrCode ret = OHOS::ERR_OK; + ErrCode ret; sptr bundleEventCallback = new (std::nothrow) BundleEventCallbackImpl(); if (onlyUnregister) { // only call UnRegisterBundleEventCallback