diff options
author | phk <phk@FreeBSD.org> | 2003-04-12 14:02:03 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-12 14:02:03 +0000 |
commit | 4be8e3040a134b2d2f819fa65db8ba5aec65aa86 (patch) | |
tree | 96e26a53294f55e192ae40b135352a443b03c113 | |
parent | aebe69bef3e3dfef795c330e1d8646044b88ce21 (diff) | |
download | FreeBSD-src-4be8e3040a134b2d2f819fa65db8ba5aec65aa86.zip FreeBSD-src-4be8e3040a134b2d2f819fa65db8ba5aec65aa86.tar.gz |
Avoid emitting duplicate makefile entries.
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index 2e4cb03..633bf8b 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -394,8 +394,11 @@ next: } nextparam: next_word(fp, wd); - if (wd == 0) + if (wd == 0) { + if (isdup) + goto next; goto doneparam; + } if (eq(wd, "no-obj")) { no_obj++; goto nextparam; |