summaryrefslogtreecommitdiff
path: root/res/ael/ael.y
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2010-06-23 21:06:40 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2010-06-23 21:06:40 +0000
commit9ec4987d3bf744a3bc70e27737f3ee2235e91a51 (patch)
tree420b6c5eb99ef22cb101de502b353ea19a95a478 /res/ael/ael.y
parent90c850b5b14eebdee1e9f9779abe6c059df78ade (diff)
Ensure a NULL file while debugging cannot crash AEL.
(closes issue #17215) Reported by: vazir Patches: 20100518__issue17215.diff.txt uploaded by tilghman (license 14) Tested by: tilghman git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@272260 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/ael/ael.y')
-rw-r--r--res/ael/ael.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/ael/ael.y b/res/ael/ael.y
index c8bc9c78e..27e04c583 100644
--- a/res/ael/ael.y
+++ b/res/ael/ael.y
@@ -854,7 +854,7 @@ struct pval *npval(pvaltype type, int first_line, int last_line,
z->endline = last_line;
z->startcol = first_column;
z->endcol = last_column;
- z->filename = strdup(my_file);
+ z->filename = strdup(S_OR(my_file, "<none>"));
return z;
}