summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSegwon <segwon.han@samsung.com>2017-07-18 12:06:44 +0900
committerSegwon <segwon.han@samsung.com>2017-07-21 14:30:03 +0900
commitcca6edad631e5a65ce786344238cc17fc110c373 (patch)
tree93b015c38eaf4a576d5700849cdc27c16b610206 /src/main.c
parent003fe4d3f445e4450d28f7f0ced619b463ba167e (diff)
downloadd2d-conv-setting-accepted/tizen_3.0_wearable.tar.gz
d2d-conv-setting-accepted/tizen_3.0_wearable.tar.bz2
d2d-conv-setting-accepted/tizen_3.0_wearable.zip
(+ Major SVACE Issue : Check if dynamically allocated pointer is not NULL) Signed-off-by: Segwon <segwon.han@samsung.com> Change-Id: I884c1f8f3a05d1b6ca4acfe3a77c0ff0010feb33
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;