import some minor fixes from FSE project

This commit is contained in:
Yann Collet
2020-07-16 20:25:15 -07:00
parent a35f135617
commit 21c273da84
3 changed files with 10 additions and 7 deletions
+1 -2
View File
@@ -54,8 +54,7 @@ size_t FSE_readNCount (short* normalizedCounter, unsigned* maxSVPtr, unsigned* t
if (hbSize < 4) {
/* This function only works when hbSize >= 4 */
char buffer[4];
memset(buffer, 0, sizeof(buffer));
char buffer[4] = {0};
memcpy(buffer, headerBuffer, hbSize);
{ size_t const countSize = FSE_readNCount(normalizedCounter, maxSVPtr, tableLogPtr,
buffer, sizeof(buffer));