summaryrefslogtreecommitdiff
path: root/pbx/pbx_ael.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-04-30 12:30:08 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-04-30 12:30:08 +0000
commitf4b05f86cc785366fbbefa8cf77977b2e59ee690 (patch)
treeda8ce1dd8ade292d99e3fd588dc4f509ed71b147 /pbx/pbx_ael.c
parentce05a548c3cb23c3ff9f4573df657d35514d1e17 (diff)
make destroy_pval able to handle a NULL value
(the warning should be removed); define a 'elements_block' rule to simplify some other rules removing duplicated code - runtests seems happy with this. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_ael.c')
-rw-r--r--pbx/pbx_ael.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c
index ad5bc674a..abc566f91 100644
--- a/pbx/pbx_ael.c
+++ b/pbx/pbx_ael.c
@@ -3554,6 +3554,11 @@ STD_MOD(MOD_1 | NO_USECOUNT, reload, NULL, NULL);
void destroy_pval_item(pval *item)
{
+ if (item == NULL) {
+ ast_log(LOG_WARNING, "null item\n");
+ return;
+ }
+
if (item->filename)
free(item->filename);