summaryrefslogtreecommitdiff
path: root/fxotune.c
diff options
context:
space:
mode:
Diffstat (limited to 'fxotune.c')
-rwxr-xr-xfxotune.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/fxotune.c b/fxotune.c
index 0b14444..41db1d3 100755
--- a/fxotune.c
+++ b/fxotune.c
@@ -303,10 +303,12 @@ static int acim_tune(int whichzap, char *dialstr)
float acim_results[16];
- outfile = fopen("/tmp/fxotune.vals", "w");
- if (!outfile) {
- fprintf(stdout, "Cannot create /tmp/fxotune.vals\n");
- return -1;
+ if (debug) {
+ outfile = fopen("/tmp/fxotune.vals", "w");
+ if (!outfile) {
+ fprintf(stdout, "Cannot create /tmp/fxotune.vals\n");
+ return -1;
+ }
}
/* Set echo settings */