diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-13 17:42:17 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-13 17:42:17 +0000 |
commit | a505dcedc68ec4f23ede2264059f449e0b5684ab (patch) | |
tree | 30a7dd80f86d8a2a1565249bf10089e05453caa1 /apps/app_skel.c | |
parent | 85062e5137aba4e9dd1ca13c46b08ae7cb507924 (diff) |
Re-introduce proper error handling that was removed in recent commits.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115850 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_skel.c')
-rw-r--r-- | apps/app_skel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_skel.c b/apps/app_skel.c index 061f1e87c..588563d2f 100644 --- a/apps/app_skel.c +++ b/apps/app_skel.c @@ -114,7 +114,8 @@ static int unload_module(void) static int load_module(void) { - return ast_register_application(app, app_exec, synopsis, descrip); + return ast_register_application(app, app_exec, synopsis, descrip) ? + AST_MODULE_LOAD_DECLINE : AST_MODULE_LOAD_SUCCESS; } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Skeleton (sample) Application"); |