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
This commit is contained in:
Tilghman Lesher
2010-06-23 21:06:40 +00:00
parent 90c850b5b1
commit 9ec4987d3b
4 changed files with 4 additions and 4 deletions

View File

@@ -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;
}