summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Osterried <thomas@osterried.de>2012-10-28 07:40:23 +0000
committerThomas Osterried <thomas@osterried.de>2012-10-28 07:40:23 +0000
commit54b0c9520764f114c726f073c53e11e8e8373235 (patch)
tree3ae8b19a12068d36c1d615f78b84b3b6aaf29891
parent4809fd9a2a38265bbf6f990e9643bea5f5f8e4c2 (diff)
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.
-rw-r--r--kiss/kissattach.c2
1 files changed, 1 insertions, 1 deletions
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) {