From: Eric Biggers Date: Thu, 13 Dec 2012 06:39:59 +0000 (-0600) Subject: make_canonical_huffman_code(): Remove unneeded variable initializations X-Git-Tag: v1.2.1~62 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=b40fb4d50c21cb6fbe62a6534225babfc900b4ec;ds=sidebyside make_canonical_huffman_code(): Remove unneeded variable initializations --- 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. */