summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfxotune.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fxotune.c b/fxotune.c
index 8a7ad19..f518260 100755
--- a/fxotune.c
+++ b/fxotune.c
@@ -282,6 +282,11 @@ set:
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] = "";