summaryrefslogtreecommitdiff
path: root/src/controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c
index e662a99..53571c1 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -132,6 +132,7 @@ int main(int argc, char* argv[])
app_event_handler_h handlers[5] = {NULL, };
ad = calloc(1, sizeof(app_data));
+ retv_if(!ad, -1);
event_callback.create = service_app_create;
event_callback.terminate = service_app_terminate;