]> git.alsa-project.org Git - tinycompress.git/commit
compress: Return error messages correctly from compress_open
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Fri, 25 Jan 2013 10:43:13 +0000 (10:43 +0000)
committerVinod Koul <vinod.koul@intel.com>
Mon, 28 Jan 2013 04:09:59 +0000 (20:09 -0800)
commit24a91e357b4b2207764b4945322e02a5c359ef86
treed8035d11bc27d1b358d1caa434946360b77f1066
parent590afade0c07f6e55fc83ed5be2569679801c601
compress: Return error messages correctly from compress_open

The allocated compress object will be freed and bad_compress will be
returned, so error messages written to the allocated compress struct
will be lost. This patch writes error messages to bad_compress for error
paths in compress_open, ensuring that error messages are returned
correctly.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
compress.c