提交 64f1f657 authored 作者: Anthony Minessale's avatar Anthony Minessale

init to a blank string not to 0 cos that 0 is cast to a string in this case and causes an off by 1

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5761 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 5fff7be5
......@@ -67,7 +67,7 @@ sub readhash($;$) {
}
if ($h->{'content-length'}) {
if(! defined $h->{body}) { $h->{body}=0; }
if(! defined $h->{body}) { $h->{body} = ""; }
while(length($h->{body}) < $h->{'content-length'}) {
my $buf;
recv $s, $buf, $h->{'content-length'} - length($h->{body}), 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论