From b40fb4d50c21cb6fbe62a6534225babfc900b4ec Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 13 Dec 2012 00:39:59 -0600 Subject: [PATCH] make_canonical_huffman_code(): Remove unneeded variable initializations --- src/comp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/comp.c b/src/comp.c index 559abbe4..ab3040d8 100644 --- a/src/comp.c +++ b/src/comp.c @@ -317,16 +317,16 @@ void make_canonical_huffman_code(uint num_syms, uint max_codeword_len, /* Pointer to the leaf node of lowest frequency that hasn't already been * added as the child of some intermediate note. */ - HuffmanLeafNode *cur_leaf = &leaves[0]; + HuffmanLeafNode *cur_leaf; /* Pointer past the end of the array of leaves. */ HuffmanLeafNode *end_leaf = &leaves[num_used_symbols]; /* Pointer to the intermediate node of lowest frequency. */ - HuffmanNode *cur_inode = &inodes[0]; + HuffmanNode *cur_inode; /* Pointer to the next unallocated intermediate node. */ - HuffmanNode *next_inode = &inodes[0]; + HuffmanNode *next_inode; /* Only jump back to here if the maximum length of the codewords allowed * by the LZX format (16 bits) is exceeded. */ -- 2.43.0