diff options
Diffstat (limited to 'ax25ipd/config.c')
-rw-r--r-- | ax25ipd/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ax25ipd/config.c b/ax25ipd/config.c index b80d113..063ca37 100644 --- a/ax25ipd/config.c +++ b/ax25ipd/config.c @@ -76,10 +76,10 @@ char *f; int errflag, e, lineno; char *fname; - if (f) - fname = f; + if (f==NULL || strlen(f) == 0) + fname=CONF_AX25IPD_FILE; else - fname = CONF_AX25IPD_FILE; + fname=f; if ((cf = fopen(fname, "r")) == NULL) { fprintf(stderr, |