summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 255fd67..8c301be 100644
--- a/src/main.c
+++ b/src/main.c
@@ -16,6 +16,8 @@
#include "main.h"
+appdata_s *ad = NULL;
+
static void win_delete_request_cb(void *data, Evas_Object *obj, void *event_info)
{
ui_app_exit();
@@ -91,7 +93,7 @@ static void app_terminate(void *data)
static void init_appdata()
{
ad = (appdata_s*)malloc(sizeof(appdata_s));
- {
+ if (ad != NULL) {
ad->win = NULL;
ad->conform = NULL;
ad->circle_surface = NULL;