From: Dmitriy Evgenevich Gonzha Date: Wed, 13 Sep 2017 18:45:30 +0000 (+0300) Subject: Fix ASan build X-Git-Tag: submit/tizen/20170915.023525~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edd8768a0072ab48033d65bcddf9c2f24e1c81a4;p=platform%2Fcore%2Fappfw%2Fmessage-port.git 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 --- 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,