From 6364520eb4c795e85f7893ba02de860d132c1d2c Mon Sep 17 00:00:00 2001 From: Terry Dawson VK2KTJ Date: Sat, 22 Sep 2001 12:39:16 +0000 Subject: Fixed ax25ipd conf file bug, small cosmetic changes --- ax25ipd/config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ax25ipd/config.c') 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, -- cgit v1.2.3