Fix dead code error 46/282146/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.060038 accepted/tizen/7.0/unified/hotfix/20221116.104549 accepted/tizen/unified/20220928.144452 tizen_7.0_m2_release
authorDewal Agarwal <d1.agarwal@samsung.com>
Tue, 27 Sep 2022 09:17:04 +0000 (14:47 +0530)
committerDewal Agarwal <d1.agarwal@samsung.com>
Tue, 27 Sep 2022 09:17:04 +0000 (14:47 +0530)
Change-Id: I2f9bf9d0a5084c5a93ce9784f15c227f4a4c6a2c
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
src/sync-service/SyncManager_RepositoryEngine.cpp

index a7e602ea7830f19316c27dfede1fb465f00da7e2..75b5f1d76adb169df17f9845cbccd5df39b9b453 100644 (file)
@@ -658,9 +658,9 @@ RepositoryEngine::ParseExtras(xmlNodePtr cur, bundle* pExtra) {
 
        bundle_add_str(pExtra, (const char*)pKey, (const char*)pVal);
 
-       if (!pKey)
+       if (pKey)
                xmlFree(pKey);
-       if (!pVal)
+       if (pVal)
                xmlFree(pVal);
 }
 /* LCOV_EXCL_STOP */