summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitriy Evgenevich Gonzha <d.gonzha@samsung.com>2017-09-13 21:45:30 +0300
committerjusung son <jusung07.son@samsung.com>2017-09-14 04:45:13 +0000
commitedd8768a0072ab48033d65bcddf9c2f24e1c81a4 (patch)
tree18f66d0e7f1716179afaba7c9bb0f483d794636b /src
parent738263ba2493e128b711c0deabe1013a37f3b0fe (diff)
downloadmessage-port-edd8768a0072ab48033d65bcddf9c2f24e1c81a4.tar.gz
message-port-edd8768a0072ab48033d65bcddf9c2f24e1c81a4.tar.bz2
message-port-edd8768a0072ab48033d65bcddf9c2f24e1c81a4.zip
Fix ASan build
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>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/inc/message_port_common.h6
-rwxr-xr-xsrc/message_port_common.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/src/inc/message_port_common.h b/src/inc/message_port_common.h
index 568cea2..914aacb 100755
--- a/src/inc/message_port_common.h
+++ b/src/inc/message_port_common.h
@@ -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;
/**
* @}
diff --git a/src/message_port_common.c b/src/message_port_common.c
index 2b9d768..651b7c0 100755
--- a/src/message_port_common.c
+++ b/src/message_port_common.c
@@ -39,6 +39,10 @@
#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,