From 213b3575ce22b457572c63afba09af80b8514e2c Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 5 Jan 2006 20:52:38 +0000 Subject: [PATCH] ensure that variable is initialized git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7819 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- formats/format_pcm.c | 2 +- formats/format_pcm_alaw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/formats/format_pcm.c b/formats/format_pcm.c index 1de3d166f7..289038ced5 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); diff --git a/formats/format_pcm_alaw.c b/formats/format_pcm_alaw.c index a738cf07b0..13d7c174a8 100644 --- a/formats/format_pcm_alaw.c +++ b/formats/format_pcm_alaw.c @@ -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);