Fix bug in handling return value from decompress routine.