Fix another declaration issue

This commit is contained in:
Jennifer Liu 2018-06-29 18:02:02 -07:00
parent 348e5f77a9
commit 84e8b2a305

View File

@ -277,8 +277,8 @@ static unsigned longCommandWArg(const char** stringPtr, const char* longCommand)
*/
static unsigned parseCoverParameters(const char* stringPtr, ZDICT_cover_params_t* params)
{
memset(params, 0, sizeof(*params));
unsigned splitPercentage = 100;
memset(params, 0, sizeof(*params));
for (; ;) {
if (longCommandWArg(&stringPtr, "k=")) { params->k = readU32FromChar(&stringPtr); if (stringPtr[0]==',') { stringPtr++; continue; } else break; }
if (longCommandWArg(&stringPtr, "d=")) { params->d = readU32FromChar(&stringPtr); if (stringPtr[0]==',') { stringPtr++; continue; } else break; }