summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-26 06:56:15 +0000
committerngie <ngie@FreeBSD.org>2015-11-26 06:56:15 +0000
commit0d0395b6fdd049d6a6eb596d44a66fe1b22e1b06 (patch)
treead0a555356aefb48ee0b28e8a17bcf1771fd4bf0 /tools
parent0bb31e67376744a6b56dc0688fbe1de53cdd5747 (diff)
downloadFreeBSD-src-0d0395b6fdd049d6a6eb596d44a66fe1b22e1b06.zip
FreeBSD-src-0d0395b6fdd049d6a6eb596d44a66fe1b22e1b06.tar.gz
Skip over lines that start with comments
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/lib/libc/resolv/resolv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/regression/lib/libc/resolv/resolv.c b/tools/regression/lib/libc/resolv/resolv.c
index d481ecf..9392872 100644
--- a/tools/regression/lib/libc/resolv/resolv.c
+++ b/tools/regression/lib/libc/resolv/resolv.c
@@ -87,6 +87,8 @@ load(const char *fname)
if ((fp = fopen(fname, "r")) == NULL)
err(1, "Cannot open `%s'", fname);
while ((line = fgetln(fp, &len)) != NULL) {
+ if (line[0] == '#')
+ continue;
char c = line[len];
char *ptr;
line[len] = '\0';
OpenPOWER on IntegriCloud