mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Merged revisions 7819 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r7819 | kpfleming | 2006-01-05 14:52:38 -0600 (Thu, 05 Jan 2006) | 2 lines ensure that variable is initialized ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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)
|
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);
|
cur = ftell(fs->f);
|
||||||
fseek(fs->f, 0, SEEK_END);
|
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)
|
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);
|
cur = ftell(fs->f);
|
||||||
fseek(fs->f, 0, SEEK_END);
|
fseek(fs->f, 0, SEEK_END);
|
||||||
|
Reference in New Issue
Block a user