Index decoder fixes.
commit1f196909143b888e062bd9a0c4ba8c34d3019bfa
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 25 Nov 2009 10:52:56 +0000 (25 12:52 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 25 Nov 2009 10:52:56 +0000 (25 12:52 +0200)
treedf2c1aeea3f3a39db0ab43112f5336d76bb01c3a
parent465d1b0d6518c5d980f2db4c2d769f9905bdd902
Index decoder fixes.

The Index decoder code didn't perfectly match the API docs,
which said that *i will be set to point to the decoded Index
only after decoding has succeeded. The docs were a bit unclear
too.

Now the decoder will initially set *i to NULL. *i will be set
to point to the decoded Index once decoding has succeeded.
This simplifies applications too, since it avoids dangling
pointers.
src/liblzma/api/lzma/index.h
src/liblzma/common/index_decoder.c