summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2017-05-03 13:14:36 +0300
committerSlava Barinov <v.barinov@samsung.com>2017-05-11 15:52:23 +0300
commitac8c34e16d45023939fcd1483837f80083260a4e (patch)
treebe478b19695f491c81fc81e51cfcb5a76c689f4f
parent70bd34bd188ab7bee44a69ddaebd4bdf8c131f7d (diff)
downloadmy-account-ac8c34e16d45023939fcd1483837f80083260a4e.tar.gz
my-account-ac8c34e16d45023939fcd1483837f80083260a4e.tar.bz2
my-account-ac8c34e16d45023939fcd1483837f80083260a4e.zip
This fixes ASan build with -fno-common Change-Id: If8ef991aea25dcdcaa9b6dabcd4d88b4fa197aae Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rwxr-xr-xinclude/my-account-view.h3
-rw-r--r--src/my-account-view-main.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/my-account-view.h b/include/my-account-view.h
index 5ab4693..f1998ec 100755
--- a/include/my-account-view.h
+++ b/include/my-account-view.h
@@ -64,10 +64,9 @@ typedef struct {
bool _myaccount_view_main_create(void *data);
int _myaccount_get_accounts_total_count(void);
-int previous_cnt;
+extern int previous_cnt;
#ifdef __cplusplus
}
#endif
#endif /*__MY_ACCOUNT_VIEW_H__*/
-
diff --git a/src/my-account-view-main.c b/src/my-account-view-main.c
index b092103..19c5cbf 100644
--- a/src/my-account-view-main.c
+++ b/src/my-account-view-main.c
@@ -30,6 +30,8 @@
#include "my-account-util.h"
#include "my-account-ui-widget.h"
+int previous_cnt;
+
static void lang_changed(appdata *ad)
{
if (!ad) {