Fix ASan build 58/149958/2
authorDmitriy Evgenevich Gonzha <d.gonzha@samsung.com>
Wed, 13 Sep 2017 18:45:30 +0000 (21:45 +0300)
committerjusung son <jusung07.son@samsung.com>
Thu, 14 Sep 2017 04:45:13 +0000 (04:45 +0000)
Move global variables declaration to message_port_common.c
to fix build with -fno-common

Change-Id: I5ad205124fc1ebb77accdb2d51baca2194c010ea
Signed-off-by: Dmitriy Evgenevich Gonzha <d.gonzha@samsung.com>
src/inc/message_port_common.h
src/message_port_common.c

index 568cea2..914aacb 100755 (executable)
@@ -78,9 +78,9 @@ bool is_preloaded(const char *local_appid, const char *remote_appid);
 int check_certificate(const char *local_appid, const char *remote_appid);
 char *get_encoded_name(const char *remote_app_id, const char *port_name, bool is_trusted);
 
-bool initialized_common;
-GDBusConnection *gdbus_conn;
-char *app_id;
+extern bool initialized_common;
+extern GDBusConnection *gdbus_conn;
+extern char *app_id;
 
 /**
  * @}
index 2b9d768..651b7c0 100755 (executable)
 #define MAX_PACKAGE_STR_SIZE 512
 #define MAX_RETRY_CNT 10
 
+bool initialized_common;
+GDBusConnection *gdbus_conn;
+char *app_id;
+
 static const int MAX_MESSAGE_SIZE = 16 * 1024;
 
 int write_socket(int fd,