From: Josh Coalson Date: Thu, 7 Oct 2004 00:22:43 +0000 (+0000) Subject: fix uninitialized variable X-Git-Tag: 1.2.0~671 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=076adb0334989a15c85df92258cb5bfb10348be4;p=platform%2Fupstream%2Fflac.git fix uninitialized variable --- diff --git a/src/libOggFLAC/seekable_stream_decoder.c b/src/libOggFLAC/seekable_stream_decoder.c index 8e0475d..f1511b7 100644 --- a/src/libOggFLAC/seekable_stream_decoder.c +++ b/src/libOggFLAC/seekable_stream_decoder.c @@ -831,7 +831,7 @@ FLAC__bool seek_to_absolute_sample_(OggFLAC__SeekableStreamDecoder *decoder, FLA FLAC__uint64 left_pos = 0, right_pos = stream_length; FLAC__uint64 left_sample = 0, right_sample = decoder->private_->stream_info.total_samples; FLAC__uint64 this_frame_sample = 0; /* only initialized to avoid compiler warning */ - FLAC__uint64 pos; /* only initialized to avoid compiler warning */ + FLAC__uint64 pos = 0; /* only initialized to avoid compiler warning */ FLAC__bool did_a_seek; unsigned iteration = 0;