diff options
author | hb.min <hb.min@samsung.com> | 2013-10-28 13:42:43 +0900 |
---|---|---|
committer | hb.min <hb.min@samsung.com> | 2013-10-28 13:42:43 +0900 |
commit | e91675adff3b4b19adc1476fa90024f6152f66a7 (patch) | |
tree | 57c50dfc6ad8643713a653d37f78d7b18bb69926 | |
parent | 165cc8482cb2fbc2355627d63fda5aa732edd82e (diff) | |
download | privacy-manager-e91675adff3b4b19adc1476fa90024f6152f66a7.tar.gz privacy-manager-e91675adff3b4b19adc1476fa90024f6152f66a7.tar.bz2 privacy-manager-e91675adff3b4b19adc1476fa90024f6152f66a7.zip |
Fix prevent defect on privacy-manager
Change-Id: I59fe4b57a00a582b8d47046d957637055a2cbc68
Signed-off-by: hb.min <hb.min@samsung.com>
-rw-r--r-- | client/src/PrivacyChecker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/PrivacyChecker.cpp b/client/src/PrivacyChecker.cpp index 173a862..f0c3267 100644 --- a/client/src/PrivacyChecker.cpp +++ b/client/src/PrivacyChecker.cpp @@ -65,7 +65,7 @@ int PrivacyChecker::initialize(void) { TryReturn(!m_isInitialized, PRIV_MGR_ERROR_SUCCESS, , "Already Initalized"); - LOGI("Starting initialize"); + LOGI("Starting initialize."); m_pHandlerGMainContext = g_main_context_new(); TryReturn(m_pHandlerGMainContext != NULL, PRIV_MGR_ERROR_SYSTEM_ERROR, m_pkgId.clear(), "cannot create m_pHandlerGMainContext"); @@ -81,13 +81,13 @@ PrivacyChecker::initialize(void) pthread_mutex_lock(&syncMutex); res = pthread_create(&m_signalThread, NULL, &runSignalListenerThread, NULL); - TryReturn(res >= 0, PRIV_MGR_ERROR_SYSTEM_ERROR, errno = res;, "Failed to create listener thread :%s", strerror(res)); + TryReturn(res >= 0, PRIV_MGR_ERROR_SYSTEM_ERROR, pthread_mutex_unlock(&syncMutex); errno = res, "Failed to create listener thread :%s", strerror(res)); pthread_cond_wait(&syncCondition, &syncMutex); pthread_mutex_unlock(&syncMutex); m_isInitialized = true; - LOGI("Initialized"); + LOGI("Initialized."); return PRIV_MGR_ERROR_SUCCESS; } |