rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=c7bab9528a244dbd53ccd619466a7788903668bf

commit c7bab9528a244dbd53ccd619466a7788903668bf
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Thu Sep 15 13:08:10 2016 +0300

    project_manager_export_edc: fix eina_lock_take result check
    
    Fix svace WID 436654
---
 src/bin/project_manager/project_manager_export_edc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/project_manager/project_manager_export_edc.c 
b/src/bin/project_manager/project_manager_export_edc.c
index 7a2c29d..888bcb3 100644
--- a/src/bin/project_manager/project_manager_export_edc.c
+++ b/src/bin/project_manager/project_manager_export_edc.c
@@ -56,7 +56,7 @@ _project_source_code_export_feedback_job(void *data, 
Ecore_Thread *th)
 {
    Eina_Stringshare *path;
    Project_Thread *ptd = (Project_Thread *)data;
-   if (!eina_lock_take(&ptd->mutex))
+   if (eina_lock_take(&ptd->mutex) != EINA_LOCK_SUCCEED)
      {
        ERR("Failed access data");
        ecore_thread_cancel(th);
@@ -173,7 +173,7 @@ void
 _group_source_code_export_feedback_job(void *data, Ecore_Thread *th)
 {
    Project_Thread *ptd = (Project_Thread *)data;
-   if (!eina_lock_take(&ptd->mutex))
+   if (eina_lock_take(&ptd->mutex) != EINA_LOCK_SUCCEED)
      {
        ERR("Failed access data");
        ecore_thread_cancel(th);

-- 


Reply via email to