fix uninitialized variable error turned up by valgrind

This commit is contained in:
Josh Coalson 2004-07-14 00:51:57 +00:00
parent 65831dd1ab
commit b279130eda
2 changed files with 3 additions and 2 deletions

View File

@ -390,7 +390,7 @@ public:
::FLAC__SeekableStreamEncoderTellStatus SeekableStreamEncoder::tell_callback(FLAC__uint64 *absolute_byte_offset)
{
(void)absolute_byte_offset;
*absolute_byte_offset = 0;
return ::FLAC__SEEKABLE_STREAM_ENCODER_TELL_STATUS_OK;
}

View File

@ -424,7 +424,8 @@ FLAC__SeekableStreamEncoderSeekStatus seekable_stream_encoder_seek_callback_(con
FLAC__SeekableStreamEncoderTellStatus seekable_stream_encoder_tell_callback_(const FLAC__SeekableStreamEncoder *encoder, FLAC__uint64 *absolute_byte_offset, void *client_data)
{
(void)encoder, (void)absolute_byte_offset, (void)client_data;
(void)encoder, (void)client_data;
*absolute_byte_offset = 0;
return FLAC__SEEKABLE_STREAM_ENCODER_TELL_STATUS_OK;
}