From 01882fa17ebfbde7e9bf63c2209814a042dc69da Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 27 Aug 2003 23:35:17 +0000 Subject: [PATCH] Format cleanups git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1444 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- formats/format_g729.c | 2 +- formats/format_pcm.c | 2 +- formats/format_pcm_alaw.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/formats/format_g729.c b/formats/format_g729.c index 81765985f7..b35ff966fe 100755 --- a/formats/format_g729.c +++ b/formats/format_g729.c @@ -168,7 +168,7 @@ static char *g729_getcomment(struct ast_filestream *s) static int g729_seek(struct ast_filestream *fs, long sample_offset, int whence) { long bytes; - off_t min,cur,max,offset; + off_t min,cur,max,offset=0; min = 0; cur = lseek(fs->fd, 0, SEEK_CUR); max = lseek(fs->fd, 0, SEEK_END); diff --git a/formats/format_pcm.c b/formats/format_pcm.c index ab3ba2205e..ebc9bf87a7 100755 --- a/formats/format_pcm.c +++ b/formats/format_pcm.c @@ -158,7 +158,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) { - off_t offset,min,cur,max; + off_t offset=0,min,cur,max; min = 0; cur = lseek(fs->fd, 0, SEEK_CUR); diff --git a/formats/format_pcm_alaw.c b/formats/format_pcm_alaw.c index abc450f24a..8e96b41af1 100755 --- a/formats/format_pcm_alaw.c +++ b/formats/format_pcm_alaw.c @@ -237,7 +237,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) { - off_t offset,min,cur,max; + off_t offset=0,min,cur,max; min = 0; cur = lseek(fs->fd, 0, SEEK_CUR);