mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2025-01-07 14:30:38 +00:00
Fix main return value if compressing
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
This commit is contained in:
parent
a318ac2f83
commit
4f2d7da136
@ -1054,7 +1054,9 @@ int main(int argc, char **argv) {
|
|||||||
if (cCommand == 'z') {
|
if (cCommand == 'z') {
|
||||||
int nResult = do_compress(pszInFilename, pszOutFilename, pszDictionaryFilename, nOptions, nMinMatchSize, nFormatVersion);
|
int nResult = do_compress(pszInFilename, pszOutFilename, pszDictionaryFilename, nOptions, nMinMatchSize, nFormatVersion);
|
||||||
if (nResult == 0 && bVerifyCompression) {
|
if (nResult == 0 && bVerifyCompression) {
|
||||||
nResult = do_compare(pszOutFilename, pszInFilename, pszDictionaryFilename, nOptions, nFormatVersion);
|
return do_compare(pszOutFilename, pszInFilename, pszDictionaryFilename, nOptions, nFormatVersion);
|
||||||
|
} else {
|
||||||
|
return nResult;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (cCommand == 'd') {
|
else if (cCommand == 'd') {
|
||||||
|
Loading…
Reference in New Issue
Block a user