From 2c32ed5e4096ec442b394a29deb3c2e555b2efb3 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 5 Feb 2014 00:26:11 +0000 Subject: [PATCH] Fix ! by not clearing not at the bottom of the loop. Add a blank line Submitted by: bde (blank line) --- usr.sbin/config/mkmakefile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index 31681a8d04d..cae2efc097b 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -63,6 +63,7 @@ static void read_files(void); static void errout(const char *fmt, ...) { va_list ap; + va_start(ap, fmt); vfprintf(stderr, fmt, ap); va_end(ap); @@ -480,8 +481,7 @@ next: if (op->op_value == 0 && opteq(op->op_name, wd)) goto nextparam; match = 0; -nextparam: - not = 0; +nextparam:; } if (not) compile += !match;