From efc550418c0b107c07818809a3d8e779e476dcd4 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Tue, 4 Nov 2008 09:31:09 +0100 Subject: Added processing of second caller id. New routing macht rule to filter second caller id. Fixed extensions directory path. "make clean" now cleans ".po" files. Fixed unititialized variable bugs and compiler warnings. modified: Makefile.am modified: Makefile.in modified: action.cpp modified: apppbx.cpp modified: callerid.c modified: chan_lcr.c modified: dss1.cpp modified: dss1.h modified: extension.c modified: gentones.c modified: ie.cpp modified: mISDN.cpp modified: message.h modified: port.cpp modified: route.c modified: route.h modified: socket_server.c modified: tones.c modified: trace.c --- tones.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tones.c') diff --git a/tones.c b/tones.c index e24e9c3..4f8a40f 100644 --- a/tones.c +++ b/tones.c @@ -41,7 +41,7 @@ int open_tone(char *file, int *codec, signed int *length, signed int *left) char linkname[256]; unsigned char buffer[256]; struct fmt *fmt; - int channels, bytes; + int channels = 0, bytes = 0; unsigned int size, chunk; int gotfmt = 0; struct stat _stat; @@ -272,7 +272,7 @@ int open_tone(char *file, int *codec, signed int *length, signed int *left) */ int read_tone(int fh, unsigned char *buffer, int codec, int len, signed int size, signed int *left, int speed) { - int l; + int l = 0; int offset; signed short buffer16[len], *buf16 = buffer16; signed short buffer32[len<<1], *buf32 = buffer32; -- cgit v1.2.3-55-g7522