Fix static analysis issues
[platform/core/appfw/app-installers.git] / src / common / signature.cc
index 1e1f661..2e3301e 100644 (file)
@@ -61,7 +61,8 @@ bool Signature::GetPrivilegeLevel(std::filesystem::path sig_root_path,
       request_type_ == ci::RequestType::ManifestPartialInstall ||
       request_type_ == ci::RequestType::ManifestPartialUpdate)))
     check_reference = false;
-  if (!CheckSignatures(check_reference, level, sig_root_path, error_message))
+  if (!CheckSignatures(check_reference, level, std::move(sig_root_path),
+      error_message))
     return false;
 
   if (*level == PrivilegeLevel::UNTRUSTED)