Skip to content

Commit

Permalink
Fix summary version check
Browse files Browse the repository at this point in the history
Also fold it into split_header.
  • Loading branch information
TimothyGu committed Apr 12, 2015
1 parent 217e2f1 commit d9167db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions FATE.pm
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ sub split_header {
if ($hdr[1] eq '1') {
$parsed->{'comment'} = $hdr[8];
$parsed->{'branch'} = $hdr[7];
} elsif ($hdr[1] ne '0') {
return undef;
}
return $parsed;
}
Expand Down
1 change: 0 additions & 1 deletion report.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ open R, '-|', "unxz -c $report" or fail 'Requsted report not found';

my $hdr = split_header scalar <R> or fail 'Invalid report';
my $conf = split_config scalar <R> or fail 'Invalid report';
$$hdr{version} eq '0' or fail 'Bad report version';

my %pass;
my %fail;
Expand Down

0 comments on commit d9167db

Please sign in to comment.