diff options
author | Terry Dawson VK2KTJ <terry@animats.net> | 2001-09-22 12:39:16 +0000 |
---|---|---|
committer | Terry Dawson VK2KTJ <terry@animats.net> | 2001-09-22 12:39:16 +0000 |
commit | 6364520eb4c795e85f7893ba02de860d132c1d2c (patch) | |
tree | 1cab5b3607be7d6f056dcb22a4bf0093f7e0a959 /ax25ipd/config.c | |
parent | d15d2ecfe78c5c8698b487e9bbc919fb1ea54598 (diff) |
Fixed ax25ipd conf file bug, small cosmetic changes
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, |