[svn-commits] branch 1.2 - r7819 in /branches/1.2/formats: format_pcm.c format_pcm_alaw.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jan 5 14:52:39 CST 2006


Author: kpfleming
Date: Thu Jan  5 14:52:38 2006
New Revision: 7819

URL: http://svn.digium.com/view/asterisk?rev=7819&view=rev
Log:
ensure that variable is initialized

Modified:
    branches/1.2/formats/format_pcm.c
    branches/1.2/formats/format_pcm_alaw.c

Modified: branches/1.2/formats/format_pcm.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/formats/format_pcm.c?rev=7819&r1=7818&r2=7819&view=diff
==============================================================================
--- branches/1.2/formats/format_pcm.c (original)
+++ branches/1.2/formats/format_pcm.c Thu Jan  5 14:52:38 2006
@@ -176,7 +176,7 @@
 
 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);

Modified: branches/1.2/formats/format_pcm_alaw.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/formats/format_pcm_alaw.c?rev=7819&r1=7818&r2=7819&view=diff
==============================================================================
--- branches/1.2/formats/format_pcm_alaw.c (original)
+++ branches/1.2/formats/format_pcm_alaw.c Thu Jan  5 14:52:38 2006
@@ -251,7 +251,7 @@
 
 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);



More information about the svn-commits mailing list