summaryrefslogtreecommitdiff
path: root/sbin/brconfig
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2001-02-12 15:45:19 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2001-02-12 15:45:19 +0000
commit4618ef299dab80374d95032d2c120df2b010b138 (patch)
tree5a2cf677cf95b10ca2c8daab06a2d639d48586de /sbin/brconfig
parentba6357fee9b662f6632752fe5fe34112fad8dfee (diff)
skip empty lines in rulefile. ok jason@
Diffstat (limited to 'sbin/brconfig')
-rw-r--r--sbin/brconfig/brconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/brconfig/brconfig.c b/sbin/brconfig/brconfig.c
index 7ff120181d8..788ae72c131 100644
--- a/sbin/brconfig/brconfig.c
+++ b/sbin/brconfig/brconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: brconfig.c,v 1.10 2000/12/12 03:41:22 jason Exp $ */
+/* $OpenBSD: brconfig.c,v 1.11 2001/02/12 15:45:18 jakob Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -1283,7 +1283,7 @@ bridge_rulefile(s, brdg, fname)
if (feof(f))
break;
ln++;
- if (buf[0] == '#')
+ if (buf[0] == '#' || buf[0] == '\n')
continue;
argc = 0;