summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/man/config.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/man/config.c b/usr.bin/man/config.c
index eae81f42a0d..a4053a5c4df 100644
--- a/usr.bin/man/config.c
+++ b/usr.bin/man/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.9 2009/10/27 23:59:40 deraadt Exp $ */
+/* $OpenBSD: config.c,v 1.10 2014/07/21 19:51:32 schwarze Exp $ */
/* $NetBSD: config.c,v 1.7 1995/09/28 06:05:21 tls Exp $ */
/*
@@ -92,8 +92,7 @@ config(char *fname)
continue;
*t = '\0';
- for (tp = TAILQ_FIRST(&head); /* Find any matching tag. */
- tp != NULL && strcmp(p, tp->s); tp = TAILQ_NEXT(tp, q));
+ tp = getlist(p); /* Find any matching tag. */
if (tp == NULL) /* Create a new tag. */
tp = addlist(p);