From c3f88405eac998058a7b08b5a5651838e3d73db7 Mon Sep 17 00:00:00 2001 From: zhangkaixiang Date: Mon, 26 Sep 2022 07:36:25 +0000 Subject: [PATCH] fix code check warning Signed-off-by: zhangkaixiang --- services/remote_file_share/src/remote_file_share.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/remote_file_share/src/remote_file_share.cpp b/services/remote_file_share/src/remote_file_share.cpp index 2e8eb47ca..2fb470530 100644 --- a/services/remote_file_share/src/remote_file_share.cpp +++ b/services/remote_file_share/src/remote_file_share.cpp @@ -77,7 +77,7 @@ static std::string GetFileName(const int &fd) } std::string fileName = filePath; - int firstSlash = fileName.rfind("/"); + std::size_t firstSlash = fileName.rfind("/"); if (firstSlash == fileName.npos) { LOGE("RemoteFileShare::GetFileName, get error path with %{public}s", fileName.c_str()); return ""; -- Gitee