Fix the ASAN build error 37/201437/2 accepted/tizen/unified/20190318.150550 submit/tizen/20190315.000134
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 14 Mar 2019 06:11:12 +0000 (15:11 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 14 Mar 2019 08:24:12 +0000 (17:24 +0900)
Change-Id: I55fb907d0be93419bcf32b35f84b7b71be16b7cd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-api/bt-gatt-service.c
bt-api/bt-telephony.c

index 5f4f4eb..0842b8a 100644 (file)
@@ -155,15 +155,15 @@ int bluetooth_gatt_convert_perm2string(
 
 #define NUMBER_OF_FLAGS        10
 
-GDBusConnection *g_conn;
-guint owner_id;
-guint manager_id;
+static GDBusConnection *g_conn;
+static guint owner_id;
+static guint manager_id;
 static gboolean new_service = FALSE;
 static gboolean new_char = FALSE;
 static int serv_id = 1;
 static bool is_server_started = false;
 
-GCancellable *register_cancel;
+static GCancellable *register_cancel;
 
 /* Introspection data for the service we are exporting */
 static const gchar service_introspection_xml[] =
index fde8499..8e531ba 100644 (file)
@@ -49,8 +49,8 @@ typedef struct {
 } bt_telephony_info_t;
 
 
-char *src_addr = NULL;
-guint owner_id = 0;
+static char *src_addr = NULL;
+static guint owner_id = 0;
 
 #define BLUETOOTH_TELEPHONY_ERROR (__bluetooth_telephony_error_quark())