summaryrefslogtreecommitdiff
path: root/res/ael/pval.c
diff options
context:
space:
mode:
authorSteve Murphy <murf@digium.com>2007-10-01 23:03:50 +0000
committerSteve Murphy <murf@digium.com>2007-10-01 23:03:50 +0000
commitb3168a76c924a99302e54b821053939a4686ca53 (patch)
tree8c945ed915051a63fc9518a3955481f146ede938 /res/ael/pval.c
parent5b5a2df463323f3a0be6556f9d45431a09af2ed2 (diff)
Merged revisions 84239 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r84239 | murf | 2007-10-01 14:27:52 -0600 (Mon, 01 Oct 2007) | 1 line closes issue #10777 -- by returning a null for the parse tree when there's really nothing there, and making sure we don't try to do checking on a null tree. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@84327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/ael/pval.c')
-rw-r--r--res/ael/pval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/ael/pval.c b/res/ael/pval.c
index 11c72532c..960c3eca5 100644
--- a/res/ael/pval.c
+++ b/res/ael/pval.c
@@ -2871,6 +2871,8 @@ void ael2_semantic_check(pval *item, int *arg_errs, int *arg_warns, int *arg_not
#endif
struct argapp *apps=0;
+ if (!item)
+ return; /* don't check an empty tree */
#ifdef AAL_ARGCHECK
rfilename = alloca(10 + strlen(ast_config_AST_VAR_DIR));
sprintf(rfilename, "%s/applist", ast_config_AST_VAR_DIR);