From 4618ef299dab80374d95032d2c120df2b010b138 Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Mon, 12 Feb 2001 15:45:19 +0000 Subject: skip empty lines in rulefile. ok jason@ --- sbin/brconfig/brconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/brconfig') 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; -- cgit v1.2.3