From b40eaced9410ec4f26cfeb7e5a5ea566adf2f82b Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 25 Oct 2019 18:16:45 -0700 Subject: [PATCH] minor cosmetic refactoring --- programs/zstdcli.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 731b3301..5b0f6e21 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -814,7 +814,7 @@ int main(int argCount, const char* argv[]) } - filenameTable[filenameIdx] = NULL; // marking end of table + filenameTable[filenameIdx] = NULL; /* marking end of table */ filenameIdx += (unsigned) extendedTable->tableSize; curTable = UTIL_createFileNamesTable(filenameTable, filenameTableSize, tableBuf); @@ -1054,8 +1054,7 @@ int main(int argCount, const char* argv[]) DISPLAYLEVEL(2, "Warning : %s is a symbolic link, ignoring\n", filenameTable[u]); } else { filenameTable[fileNamesNb++] = filenameTable[u]; - } - } + } } if (fileNamesNb == 0 && filenameIdx > 0) CLEAN_RETURN(1); filenameIdx = fileNamesNb; @@ -1068,8 +1067,7 @@ int main(int argCount, const char* argv[]) free((void*)filenameTable); filenameTable = extendedFileList; filenameIdx = fileNamesNb; - } - } + } } #else (void)followLinks; #endif @@ -1257,6 +1255,7 @@ _end: UTIL_freeFileList(extendedFileList, fileNamesBuf); else #endif - free((void*)filenameTable); + free((void*)filenameTable); + return operationResult; }