aboutsummaryrefslogtreecommitdiffstats
path: root/res/ael/pval.c
diff options
context:
space:
mode:
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);