Merge pull request #8 from polyfloyd/grandtotal-fix

plugin/grandtotal: Initialize variables
This commit is contained in:
Juerd Waalboer 2019-01-16 21:40:01 +01:00 committed by GitHub
commit f3e90cf710
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,8 +7,8 @@ sub command :Tab(grandtotal) {
return NEXT if $command ne 'grandtotal';
my $pos;
my $neg;
my $pos = 0;
my $neg = 0;
open my $fh, "<", "revbank.accounts";
while (defined(my $line = readline $fh)) {