diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-05-06 10:17:59 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-05-06 10:17:59 +0000 |
| commit | ffcbc2d7ba03067492045e4cbead519a3b3c27ef (patch) | |
| tree | df436f4253158a7d5a4875e54cd7d273dd5334a6 /examples/streaming_compression.c | |
| parent | ab984b3e51d32af796fe89e130f57bf58b8a14b2 (diff) | |
Notes
Diffstat (limited to 'examples/streaming_compression.c')
| -rw-r--r-- | examples/streaming_compression.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/streaming_compression.c b/examples/streaming_compression.c index 4c2c1a1d8bc7..24ad15bd614c 100644 --- a/examples/streaming_compression.c +++ b/examples/streaming_compression.c @@ -112,7 +112,6 @@ static const char* createOutFilename_orDie(const char* filename) int main(int argc, const char** argv) { const char* const exeName = argv[0]; - const char* const inFilename = argv[1]; if (argc!=2) { printf("wrong arguments\n"); @@ -121,6 +120,8 @@ int main(int argc, const char** argv) return 1; } + const char* const inFilename = argv[1]; + const char* const outFilename = createOutFilename_orDie(inFilename); compressFile_orDie(inFilename, outFilename, 1); |
