summaryrefslogtreecommitdiff
path: root/archivers/ha/patches/patch-aa
blob: f1be61e133e174952b9008a2dfac5aab4b39ff2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-aa,v 1.4 2001/07/15 11:49:42 jlam Exp $

--- c/hsc.c.orig	Thu Jan 12 01:51:16 1995
+++ c/hsc.c
@@ -491,6 +491,7 @@
 
     esc=adj_escape_prob(fe[cp],cp);
     tot=ft[cp];
+    cf = 0;
     if (nec>=NECLIM) {
 	if (tot<=NECTLIM && nec==NECMAX) sv=2;
 	else sv=1;
@@ -548,7 +549,7 @@
     register U16B i;
     register S16B sum,tot,esc,cf;
     
-    esc=tot=0;
+    esc=tot=cf=0;
     for (i=cp;i!=NIL;i=nb[i]) {
 	if (!cmask[fc[i]]) {
 	    tot+=fa[i];