Add missing if to the resume code

This commit is contained in:
Brian Fraser fraserb@gmail.com
2013-01-17 15:10:53 -03:00
parent 16bb2d3c0e
commit 3d93f42bc7

View File

@@ -13841,7 +13841,9 @@ sub main {
$args->{input_fh} = $fh;
$args->{tell} = sub {
my $pos = tell $fh;
$args->{pos_for}->{$args->{filename}} = $pos;
if ( $args->{filename} ) {
$args->{pos_for}->{$args->{filename}} = $pos;
}
return $pos;
};
$args->{more_events} = 1;