Fix defects discovered in coverity scan

* fix control flow issues
* fix uninitialized variables

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
HyukWoo Park 2020-09-08 16:54:26 +09:00 committed by Patrick Kim
commit 56e3ec638b
7 changed files with 87 additions and 84 deletions

View file

@ -467,7 +467,7 @@ public:
if (!absPath) {
return std::string();
}
std::string utf8AbsolutePath = absPath ? absPath : "";
std::string utf8AbsolutePath = absPath;
free(absPath);
return utf8AbsolutePath;