[Asterisk-cvs] zaptel fxotune.c,1.28,1.29
kpfleming
kpfleming
Wed Oct 5 17:10:08 CDT 2005
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv8861
Modified Files:
fxotune.c
Log Message:
make fxotune not segfault when config file is not present
Index: fxotune.c
===================================================================
RCS file: /usr/cvsroot/zaptel/fxotune.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- fxotune.c 19 Sep 2005 18:52:35 -0000 1.28
+++ fxotune.c 5 Oct 2005 21:05:49 -0000 1.29
@@ -282,6 +282,11 @@
fp = fopen(configfile, "r");
+ if (!fp) {
+ fprintf(stdout, "Cannot open %s!\n",configfile);
+ return -1;
+ }
+
for (i = 0;res != EOF; i++) {
struct wctdm_echo_coefs mycoefs;
char completezappath[56] = "";
More information about the svn-commits
mailing list