From: gerv%gerv.net <> Date: Fri, 11 Oct 2002 13:30:09 +0000 (+0000) Subject: Bug 173808 - Use of uninitialized value in subtraction (-) at duplicates.cgi line... X-Git-Tag: bugzilla-2.17.1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a6b7a7bb3890ef368cb5f162cc57cdb5160c05b;p=thirdparty%2Fbugzilla.git Bug 173808 - Use of uninitialized value in subtraction (-) at duplicates.cgi line 133. Patch by gerv; r=bbaetz. --- diff --git a/duplicates.cgi b/duplicates.cgi index 0e27f077e4..643a54423e 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -135,7 +135,7 @@ if (!tie(%before, 'AnyDBM_File', "data/duplicates/dupes$whenever", } } else { # Calculate the deltas - ($delta{$_} = $count{$_} - $before{$_}) foreach (keys(%count)); + ($delta{$_} = $count{$_} - ($before{$_} || 0)) foreach (keys(%count)); $dobefore = 1; }