From: Tom Tromey Date: Tue, 30 Jan 2018 04:43:00 +0000 (-0700) Subject: Another -u fix X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=117361321fc38ad4534e25b7614e4b72dd3daff5;p=emacs.git Another -u fix * lib-src/etags.c (copy_entries_from_old_file): Exit from inner loop before copying \f to the TAGS file. --- diff --git a/lib-src/etags.c b/lib-src/etags.c index 6479e2f12fb..925355f9da0 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -1707,14 +1707,14 @@ copy_entries_from_old_file (FILE *old_file, const char *old_filename, FILE *out_ break; } + if (line.len < 0 || strneq (line.buffer, "\f", 1)) + break; + if (should_copy) { fwrite (line.buffer, line.len, 1, out_file); fputs ("\n", out_file); } - - if (line.len < 0 || strneq (line.buffer, "\f", 1)) - break; } }