summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2016-11-04 20:49:19 (GMT)
committerGitHub <noreply@github.com>2016-11-04 20:49:19 (GMT)
commit10c5d5eee3b1afad66b3c5c6ce7640484acbad77 (patch)
tree2b254e96b1290055e43ac77892cc9d76c7eb1ce9 /programs/lz4cli.c
parentf878c08b76a58e083c47470284139f3006c8e746 (diff)
parent86a24c80f4689fd88c48849c53eb0f0f4de4e5d7 (diff)
downloadlz4-10c5d5eee3b1afad66b3c5c6ce7640484acbad77.zip
lz4-10c5d5eee3b1afad66b3c5c6ce7640484acbad77.tar.gz
lz4-10c5d5eee3b1afad66b3c5c6ce7640484acbad77.tar.bz2
Merge pull request #253 from terrelln/exit-code
Return error if input file does not exist.
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r--programs/lz4cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index a6f4b4e..f77be3d 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -550,7 +550,7 @@ int main(int argc, const char** argv)
if (multiple_inputs)
operationResult = LZ4IO_decompressMultipleFilenames(inFileNames, ifnIdx, LZ4_EXTENSION);
else
- DEFAULT_DECOMPRESSOR(input_filename, output_filename);
+ operationResult = DEFAULT_DECOMPRESSOR(input_filename, output_filename);
} else {
/* compression is default action */
if (legacy_format) {
@@ -560,7 +560,7 @@ int main(int argc, const char** argv)
if (multiple_inputs)
operationResult = LZ4IO_compressMultipleFilenames(inFileNames, ifnIdx, LZ4_EXTENSION, cLevel);
else
- DEFAULT_COMPRESSOR(input_filename, output_filename, cLevel);
+ operationResult = DEFAULT_COMPRESSOR(input_filename, output_filename, cLevel);
}
}