fix uninitialized variable error turned up by valgrind
[flac.git] / src / test_libFLAC++ / encoders.cpp
index dfe60e0..370241d 100644 (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;
 }