diff options
author | fenner <fenner@FreeBSD.org> | 2001-11-07 17:53:25 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 2001-11-07 17:53:25 +0000 |
commit | 5c86756d5cf36e038608ab2591f6cb6b48484e69 (patch) | |
tree | b2b688ff8330ba39d958302f310db7a7c8cd4cd1 /sys/boot | |
parent | 56c5d2891e8af291e73151d9600e747e77ceee59 (diff) | |
download | FreeBSD-src-5c86756d5cf36e038608ab2591f6cb6b48484e69.zip FreeBSD-src-5c86756d5cf36e038608ab2591f6cb6b48484e69.tar.gz |
Initialize first to -1; this will create a (nearly) empty file on failure,
instead of looping until the disk is full. This kind of failure can
especially happen when a version of awk that doesn't support POSIX
character classes is used.
Submitted by: David Wolfskill <david@catwhisker.org>
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/common/merge_help.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/merge_help.awk b/sys/boot/common/merge_help.awk index 9741ed3..02fbc4a 100644 --- a/sys/boot/common/merge_help.awk +++ b/sys/boot/common/merge_help.awk @@ -8,7 +8,7 @@ BEGIN \ { state = 0; - first = 0; + first = -1; ind = 0; } |