From 42090470db132f3938feb99ac35525f56e0b4edf Mon Sep 17 00:00:00 2001 From: Michihiro NAKAJIMA Date: Tue, 11 Sep 2012 20:06:25 +0900 Subject: [PATCH] Fix a bug that Clang Static Analyzer said "Assigned value is garbage or undefined". --- libarchive/archive_read_support_format_rar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/archive_read_support_format_rar.c b/libarchive/archive_read_support_format_rar.c index 3ef7200aa..87a729eec 100644 --- a/libarchive/archive_read_support_format_rar.c +++ b/libarchive/archive_read_support_format_rar.c @@ -2264,7 +2264,7 @@ make_table(struct archive_read *a, struct huffman_code *code) code->tablesize = code->maxlength; code->table = - (struct huffman_table_entry *)malloc(sizeof(*code->table) + (struct huffman_table_entry *)calloc(1, sizeof(*code->table) * (1 << code->tablesize)); return make_table_recurse(a, code, 0, code->table, 0, code->tablesize); -- 2.47.3