From e8409d496e6c03a1429e724b764f01a4bc591a90 Mon Sep 17 00:00:00 2001 From: Taesoo Jun Date: Wed, 1 Aug 2018 18:49:02 +0900 Subject: [PATCH] Fix the variable in the critical sectionfor thread-safety Change-Id: Ia1578e05cdd78b82d5f24d8821c21f9302932b7a Signed-off-by: Taesoo Jun --- agent/download-agent-http-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/download-agent-http-mgr.c b/agent/download-agent-http-mgr.c index 47d36ba..6331017 100755 --- a/agent/download-agent-http-mgr.c +++ b/agent/download-agent-http-mgr.c @@ -797,7 +797,7 @@ da_ret_t request_to_resume_http_download(da_info_t *da_info) DA_LOGD("Change state to HTTP_STATE_DOWNLOADING"); DA_MUTEX_LOCK(&(http_info->mutex_state)); http_info->state = HTTP_STATE_DOWNLOADING; - DA_LOGD("Changed state[%s]", __get_state_str(http_state)); + DA_LOGD("Changed state[%s]", __get_state_str(http_info->state)); DA_MUTEX_UNLOCK(&(http_info->mutex_state)); DA_LOGD("Complete to change state"); } else { -- 2.7.4