Add return code while traversing result list
authorJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 2 Mar 2021 05:44:53 +0000 (14:44 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 2 Mar 2021 05:44:53 +0000 (14:44 +0900)
Actually iteration happens only once but add return code to prevent static analysis tool detection.

Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/manager/pkginfo_manager.cc

index 4b56ce5..ec7193a 100644 (file)
@@ -140,6 +140,7 @@ extern "C" EXPORT_API char *_appinfo_get_localed_label(
                        LOG(ERROR) << "Out of memory";
                        return nullptr;
                }
+               return label;
        }
 
        return label;