git-svn: trunk@3779
Tomasz Kojm authored on 2008/04/09 05:23:23... | ... |
@@ -766,8 +766,10 @@ static int chm_decompress_stream(int fd, chm_metadata_t *metadata, const char *d |
766 | 766 |
lzx_free(stream); |
767 | 767 |
|
768 | 768 |
/* Delete the file */ |
769 |
- if(cli_unlink(filename)) retval = -1; |
|
770 |
- retval = tmpfd; |
|
769 |
+ if(cli_unlink(filename)) |
|
770 |
+ retval = -1; |
|
771 |
+ else |
|
772 |
+ retval = tmpfd; |
|
771 | 773 |
|
772 | 774 |
abort: |
773 | 775 |
if ((retval == -1) && (tmpfd >= 0)) { |