summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-01-29 21:43:00 -0700
committerTom Tromey <tom@tromey.com>2018-01-29 21:43:00 -0700
commit117361321fc38ad4534e25b7614e4b72dd3daff5 (patch)
tree73fd5c3e902ffbf845dee2c3fb0163a0e7015a7c
parentee15b78cf6913e4f34306c9295cbd10cdec749e9 (diff)
downloademacs-feature/etags-update.tar.gz
Another -u fixfeature/etags-update
* lib-src/etags.c (copy_entries_from_old_file): Exit from inner loop before copying \f to the TAGS file.
-rw-r--r--lib-src/etags.c6
1 files changed, 3 insertions, 3 deletions
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;
}
}