Move variables definitions to .c file for address sanitizer 48/86248/1 accepted/tizen/common/20160831.162245 accepted/tizen/ivi/20160831.125332 accepted/tizen/mobile/20160831.125244 accepted/tizen/tv/20160831.125258 accepted/tizen/wearable/20160831.125313 submit/tizen/20160831.084300
authormin7.choi <min7.choi@samsung.com>
Wed, 31 Aug 2016 08:35:20 +0000 (17:35 +0900)
committermin7.choi <min7.choi@samsung.com>
Wed, 31 Aug 2016 08:35:20 +0000 (17:35 +0900)
Change-Id: I2becfe63526af778c1c73b5a8d6eb891b0bf5f6e
Signed-off-by: min7.choi <min7.choi@samsung.com>
agent/download-agent-dl-info.c
agent/include/download-agent-dl-info.h
packaging/download-provider.spec

index bdaaf36..123cf7d 100644 (file)
@@ -24,7 +24,8 @@
 #include "download-agent-http-msg-handler.h"
 
 static pthread_mutex_t mutex_da_info_list = PTHREAD_MUTEX_INITIALIZER;
-
+static pthread_mutex_t *g_openssl_locks_list;
+da_info_t *da_info_list[DA_MAX_ID];
 
 /* locking mechnism for safe use of openssl context */
 static void openssl_lock_callback(int mode, int type, char *file, int line)
index ad93f85..e5f618d 100644 (file)
@@ -169,8 +169,7 @@ typedef struct {
        int update_time;
 } da_info_t;
 
-pthread_mutex_t *g_openssl_locks_list;
-da_info_t *da_info_list[DA_MAX_ID];
+extern da_info_t *da_info_list[DA_MAX_ID];
 
 #define GET_STATE_MUTEX(INFO) (INFO->mutex_state)
 #define GET_STATE(INFO) (INFO->state)
index c68f453..1462384 100755 (executable)
@@ -1,7 +1,7 @@
 %define _ux_define tizen2.3
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.1.63
+Version:    2.1.64
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0