Fix the variable in the critical sectionfor thread-safety 54/185654/1 submit/tizen/20180803.081836
authorTaesoo Jun <steve.jun@samsung.com>
Wed, 1 Aug 2018 09:49:02 +0000 (18:49 +0900)
committerTaesoo Jun <steve.jun@samsung.com>
Wed, 1 Aug 2018 09:49:02 +0000 (18:49 +0900)
Change-Id: Ia1578e05cdd78b82d5f24d8821c21f9302932b7a
Signed-off-by: Taesoo Jun <steve.jun@samsung.com>
agent/download-agent-http-mgr.c

index 47d36ba..6331017 100755 (executable)
@@ -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 {