X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Flizard.c;h=10fd5f0c9fb2154d920cea743c4b77b23cb36db7;hb=86919305a08aa88b3a60c3216752291ba7f0b496;hp=b9f80486e45d0648c5ad0c2e3409eff005a6656b;hpb=2701ee1bcfe28449a58be93ba044448d3089d387;p=libucw.git diff --git a/lib/lizard.c b/lib/lizard.c index b9f80486..10fd5f0c 100644 --- a/lib/lizard.c +++ b/lib/lizard.c @@ -35,7 +35,7 @@ hashf(byte *string) } static inline byte * -locate_string(byte *string, uns record_id, uns head) +locate_string(byte *string, int record_id, int head) /* The strings are recorded into the hash-table regularly, hence there is no * need to store the pointer there. */ { @@ -177,7 +177,7 @@ lizard_compress(byte *in, uns in_len, byte *out) while (in < in_end) { uns hash = hashf(in); - byte *best; + byte *best = NULL; uns len = find_match(hash_tab[hash], hash_rec, in, in_end, &best, head); if (len < 3) #if 0 // TODO: now, our routine does not detect matches of length 2