diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-04 19:33:37 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-04 19:33:37 +0000 |
commit | a2c2aa216d65860e8bd3bd92724ffa65fadb5b75 (patch) | |
tree | b6c8a2e6ff68b16226b585761c57f91e337cd434 /pbx/pbx_ael.c | |
parent | a70774381e96c3dd20d7638d7292e40954d70907 (diff) |
These changes resolve the problems in bug 8090, where there's a crash compiling an empty context
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44377 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_ael.c')
-rw-r--r-- | pbx/pbx_ael.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c index 29a926988..42dd00f6f 100644 --- a/pbx/pbx_ael.c +++ b/pbx/pbx_ael.c @@ -3541,6 +3541,10 @@ void add_extensions(struct ael_extension *exten) { struct ael_priority *pr; char *label=0; + if (!exten) { + ast_log(LOG_WARNING, "This file is Empty!\n" ); + return; + } do { struct ael_priority *last = 0; |