Fix static analysis issue
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 18 Apr 2023 02:08:14 +0000 (02:08 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 18 Apr 2023 02:13:55 +0000 (02:13 +0000)
Type:
 - Forward null

Change-Id: I97b2abd061728ca23ec3f15a331bf466bd5c8015
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/amd_res_info.cc

index 1df2bc200d9aab86a36da75460fbed0997dd17f4..1093c9ba4457f979a88cfa0595d37d87d3d03907 100644 (file)
@@ -355,7 +355,7 @@ static int ResInfoGetGadgetResPackagesInfo(uid_t uid, GList** pkgids,
       gadget_map.erase(found);
     }
 
-    gadget_map[res_pkginfo->GetResType()] = std::move(res_pkginfo);
+    gadget_map[res_pkginfo->GetResType()] = res_pkginfo;
   }
 
   for (const auto& [_, res_pkginfo] : gadget_map) {