minor cosmetic refactoring
This commit is contained in:
parent
5fb84ca2cf
commit
b40eaced94
@ -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;
|
filenameIdx += (unsigned) extendedTable->tableSize;
|
||||||
|
|
||||||
curTable = UTIL_createFileNamesTable(filenameTable, filenameTableSize, tableBuf);
|
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]);
|
DISPLAYLEVEL(2, "Warning : %s is a symbolic link, ignoring\n", filenameTable[u]);
|
||||||
} else {
|
} else {
|
||||||
filenameTable[fileNamesNb++] = filenameTable[u];
|
filenameTable[fileNamesNb++] = filenameTable[u];
|
||||||
}
|
} }
|
||||||
}
|
|
||||||
if (fileNamesNb == 0 && filenameIdx > 0)
|
if (fileNamesNb == 0 && filenameIdx > 0)
|
||||||
CLEAN_RETURN(1);
|
CLEAN_RETURN(1);
|
||||||
filenameIdx = fileNamesNb;
|
filenameIdx = fileNamesNb;
|
||||||
@ -1068,8 +1067,7 @@ int main(int argCount, const char* argv[])
|
|||||||
free((void*)filenameTable);
|
free((void*)filenameTable);
|
||||||
filenameTable = extendedFileList;
|
filenameTable = extendedFileList;
|
||||||
filenameIdx = fileNamesNb;
|
filenameIdx = fileNamesNb;
|
||||||
}
|
} }
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
(void)followLinks;
|
(void)followLinks;
|
||||||
#endif
|
#endif
|
||||||
@ -1257,6 +1255,7 @@ _end:
|
|||||||
UTIL_freeFileList(extendedFileList, fileNamesBuf);
|
UTIL_freeFileList(extendedFileList, fileNamesBuf);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
free((void*)filenameTable);
|
free((void*)filenameTable);
|
||||||
|
|
||||||
return operationResult;
|
return operationResult;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user