diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2011-09-01 04:25:09 -0400 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2011-09-01 04:25:09 -0400 |
commit | 3caa7d2f3d95edba576892770a650d433d6d1ad2 (patch) | |
tree | 0ea78e90ba66d30122406f7336b393a19013a933 /libarchive/archive_read_support_format_lha.c | |
parent | ded05417d689fb12fa623cca6b43b273c6391626 (diff) | |
download | libarchive-3caa7d2f3d95edba576892770a650d433d6d1ad2.tar.gz |
Issue 176: Const-ify several static arrays.
SVN-Revision: 3666
Diffstat (limited to 'libarchive/archive_read_support_format_lha.c')
-rw-r--r-- | libarchive/archive_read_support_format_lha.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_read_support_format_lha.c b/libarchive/archive_read_support_format_lha.c index 400b8e22..3dc87c58 100644 --- a/libarchive/archive_read_support_format_lha.c +++ b/libarchive/archive_read_support_format_lha.c @@ -1209,7 +1209,7 @@ lha_read_file_extended_header(struct archive_read *a, struct lha *lha, if (datasize >= 2) { lha->header_crc = archive_le16dec(extdheader); if (crc != NULL) { - static char zeros[2] = {0, 0}; + static const char zeros[2] = {0, 0}; *crc = lha_crc16(*crc, h, extdsize - datasize); /* CRC value itself as zero */ |