Added one assert() to process.c of the command line tool.
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 14 Jan 2008 11:34:29 +0000 (13:34 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 14 Jan 2008 11:34:29 +0000 (13:34 +0200)
src/lzma/process.c

index 1818182..56bcda9 100644 (file)
@@ -273,6 +273,7 @@ single(thread_data *t)
                if (ret != LZMA_OK) {
                        if (ret == LZMA_STREAM_END) {
                                if (opt_mode == MODE_COMPRESS) {
+                                       assert(t->pair->src_eof);
                                        success = true;
                                        break;
                                }