Fixed a harmless lapse with static array initialization

This commit is contained in:
Thomas Schmitt 2017-09-22 20:42:57 +02:00
parent 53b2d6dcd7
commit 79baab3fc9
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ void make_hfsplus_class_pages()
uint16_t *rpt, *page_pt; uint16_t *rpt, *page_pt;
int page_count = 0; int page_count = 0;
memset(class_pages, 0, 19 * 256); memset(class_pages, 0, 19 * 256 * sizeof(uint16_t));
for (i = 0; i < 256; i++) for (i = 0; i < 256; i++)
hfsplus_class_pages[i] = NULL; hfsplus_class_pages[i] = NULL;