1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00

minor style change

This commit is contained in:
Yann Collet
2016-08-01 14:26:49 +02:00
parent a9febe81ae
commit 415251c63b
2 changed files with 4 additions and 7 deletions

View File

@ -365,13 +365,10 @@ UTIL_STATIC const char** UTIL_createFileList(const char **inputNames, unsigned i
pos += len + 1; pos += len + 1;
nbFiles++; nbFiles++;
} }
} } else {
else
{
nbFiles += UTIL_prepareFileList(inputNames[i], &buf, &pos, &bufend); nbFiles += UTIL_prepareFileList(inputNames[i], &buf, &pos, &bufend);
if (buf == NULL) return NULL; if (buf == NULL) return NULL;
} } }
}
if (nbFiles == 0) { free(buf); return NULL; } if (nbFiles == 0) { free(buf); return NULL; }

View File

@ -441,8 +441,8 @@ int main(int argCount, const char** argv)
if (recursive) { if (recursive) {
fileNamesTable = UTIL_createFileList(filenameTable, filenameIdx, &fileNamesBuf, &fileNamesNb); fileNamesTable = UTIL_createFileList(filenameTable, filenameIdx, &fileNamesBuf, &fileNamesNb);
if (fileNamesTable) { if (fileNamesTable) {
unsigned i; unsigned u;
for (i=0; i<fileNamesNb; i++) DISPLAYLEVEL(4, "%d %s\n", i, fileNamesTable[i]); for (u=0; u<fileNamesNb; u++) DISPLAYLEVEL(4, "%d %s\n", u, fileNamesTable[u]);
free((void*)filenameTable); free((void*)filenameTable);
filenameTable = fileNamesTable; filenameTable = fileNamesTable;
filenameIdx = fileNamesNb; filenameIdx = fileNamesNb;