From 7387b874a7d17eb49a2ba9aeaa791e8ce7043b93 Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Wed, 16 Jan 2019 21:08:49 +0100 Subject: [PATCH] plugin/grandtotal: Initialize variables --- plugins/grandtotal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/grandtotal b/plugins/grandtotal index 50d0781..5ed9c5f 100755 --- a/plugins/grandtotal +++ b/plugins/grandtotal @@ -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)) {