提交 41e011a5 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix undef check

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13012 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 535cf469
...@@ -43,14 +43,12 @@ sub getVar($;) { ...@@ -43,14 +43,12 @@ sub getVar($;) {
my $input; my $input;
if ($e) { if ($e) {
$input = $e->getBody() . "\n"; $input = $e->getBody();
if ($input eq "_undef_") { if ($input && $input eq "_undef_") {
$input = undef; $input = undef;
} }
} }
chomp $input;
return $input; return $input;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论