No need to initialize the chain var of a checksum struct since
authorWayne Davison <wayned@samba.org>
Mon, 27 Feb 2006 02:55:55 +0000 (02:55 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 27 Feb 2006 02:55:55 +0000 (02:55 +0000)
it will get set when it is inserted into the hash table.

dynamic_hash.diff

index cd002e933e4d139fef1e1b21f7f10371b0acfa7c..5f32e20aa612eefb0b98d2b95e304362086d46c4 100644 (file)
@@ -189,13 +189,3 @@ An extended version of a patch by Shachar Shemesh.
        short flags;            /**< flag bits */
        char sum2[SUM_LENGTH];  /**< checksum  */
  };
---- old/sender.c
-+++ new/sender.c
-@@ -92,6 +92,7 @@ static struct sum_struct *receive_sums(i
-               s->sums[i].offset = offset;
-               s->sums[i].flags = 0;
-+              s->sums[i].chain = -1;
-               if (i == s->count-1 && s->remainder != 0)
-                       s->sums[i].len = s->remainder;