Fix static analysis issues 77/295377/1
authorTomasz Swierczek <t.swierczek@samsung.com>
Thu, 6 Jul 2023 07:26:13 +0000 (09:26 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Thu, 6 Jul 2023 07:26:13 +0000 (09:26 +0200)
Change-Id: I90839d874efd4e8b53a7c30870182fbf83c8c248

src/common/service_impl_utils.cpp

index 6361431..acc88a1 100644 (file)
@@ -195,7 +195,7 @@ int getLegalPkgBaseDirs(const uid_t &uid,
 bool containSubDir(const std::string &parent, const pkg_paths &paths)
 {
 
-    for (auto path : paths) {
+    for (auto &path : paths) {
         if (isSubDir(parent, path.first))
             return true;
     }