Fix a static analyzer issue 23/122623/1
authorSangyoon Jang <s89.jang@samsung.com>
Fri, 31 Mar 2017 12:09:04 +0000 (21:09 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 3 Apr 2017 05:19:52 +0000 (22:19 -0700)
Change-Id: I60d506a3f952577ab96cb2d857b6548faed48a4c
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
(cherry picked from commit f3d8b93eaeccf939a5843cdcd4c6904181fd216f)

src/unit_tests/smoke_test.cc

index 9f70312b399fe1a763e0b281b6a8c06feb894241..45c651e6612c9549dacc88ea3b29212d67255a54 100644 (file)
@@ -80,7 +80,8 @@ class ScopedTzipInterface {
   explicit ScopedTzipInterface(const std::string& pkgid)
       : pkg_path_(bf::path(ci::GetRootAppPath(false,
             kTestUserId)) / pkgid),
-        interface_(ci::GetMountLocation(pkg_path_)) {
+        interface_(ci::GetMountLocation(pkg_path_)),
+        mounted_(true) {
     interface_.MountZip(ci::GetZipPackageLocation(pkg_path_, pkgid));
   }