aboutsummaryrefslogtreecommitdiffstats
path: root/formats/format_pcm.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-05 20:52:38 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-05 20:52:38 +0000
commitc51c2f425c96725791ead48455089ed582a229d4 (patch)
tree25c19e81ce6cbcccfcb0b1a2ebc5b291fa0bf424 /formats/format_pcm.c
parentfbececf70bbbc1cf382ca5c3fe517cc42f7504b8 (diff)
ensure that variable is initialized
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7819 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats/format_pcm.c')
-rw-r--r--formats/format_pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/formats/format_pcm.c b/formats/format_pcm.c
index 1de3d166f..289038ced 100644
--- a/formats/format_pcm.c
+++ b/formats/format_pcm.c
@@ -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);