ensure that variable is initialized

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Kevin P. Fleming 20 years ago
parent 3821e18d08
commit 213b3575ce

@ -176,7 +176,7 @@ static int pcm_write(struct ast_filestream *fs, struct ast_frame *f)
static int pcm_seek(struct ast_filestream *fs, long sample_offset, int whence)
{
long cur, max, offset;
long cur, max, offset = 0;
cur = ftell(fs->f);
fseek(fs->f, 0, SEEK_END);

@ -251,7 +251,7 @@ static int pcm_write(struct ast_filestream *fs, struct ast_frame *f)
static int pcm_seek(struct ast_filestream *fs, long sample_offset, int whence)
{
long cur, max, offset;
long cur, max, offset = 0;
cur = ftell(fs->f);
fseek(fs->f, 0, SEEK_END);

Loading…
Cancel
Save