THRIFT-758. perl: incorrect deference in exception handling

Patch: Yann Kerherve

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991784 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bryan Duxbury 2010-09-02 00:52:46 +00:00
parent 773b8dbf30
commit ee8255d086

View File

@ -93,11 +93,11 @@ sub read {
my $ftype = 0;
my $fid = 0;
$xfer += $input->readStructBegin($fname);
$xfer += $input->readStructBegin(\$fname);
while (1)
{
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
$xfer += $input->readFieldBegin(\$fname, \$ftype, \$fid);
if ($ftype == TType::STOP) {
last; next;
}
@ -107,7 +107,7 @@ sub read {
/1/ && do{
if ($ftype == TType::STRING) {
$xfer += $input->readString($self->{message});
$xfer += $input->readString(\$self->{message});
} else {
$xfer += $input->skip($ftype);
}
@ -117,7 +117,7 @@ sub read {
/2/ && do{
if ($ftype == TType::I32) {
$xfer += $input->readI32($self->{code});
$xfer += $input->readI32(\$self->{code});
} else {
$xfer += $input->skip($ftype);
}