From 54b0c9520764f114c726f073c53e11e8e8373235 Mon Sep 17 00:00:00 2001 From: Thomas Osterried Date: Sun, 28 Oct 2012 07:40:23 +0000 Subject: kissattach and it's sisters are parsing axports on their own. they handled lines starting with '#' correctly, but complain (and refuse to work) if the lines are empty (-- this is in contrast to programs like call which use libax25 and work with empty lines). this small patch fixes this issue. --- kiss/kissattach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kiss') diff --git a/kiss/kissattach.c b/kiss/kissattach.c index 025b358..6ed66a2 100644 --- a/kiss/kissattach.c +++ b/kiss/kissattach.c @@ -80,7 +80,7 @@ static int readconfig(char *port) if ((s = strchr(buffer, '\n')) != NULL) *s = '\0'; - if (strlen(buffer) > 0 && *buffer == '#') + if (*buffer == 0 || *buffer == '#') continue; if ((s = strtok(buffer, " \t\r\n")) == NULL) { -- cgit v1.2.3