From 26d45adf8a0e28d77c039a3fec06633f4bab6248 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 5 Aug 2007 18:23:09 +0000 Subject: [PATCH] (xufldhdr): ellipsis wasn't cleared for machine-readable input. This broke reading machine-readable input after reading a split table failed before seeing the last part. Luckily, callers never tried that. --- src/lib/common/xundump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/common/xundump.c b/src/lib/common/xundump.c index 603b143f9..9ffb3ee0d 100644 --- a/src/lib/common/xundump.c +++ b/src/lib/common/xundump.c @@ -687,11 +687,12 @@ xufldhdr(FILE *fp, struct castr ca[]) int *fidx; int ch, i, j, n; + ellipsis = 0; + if (human) { while ((ch = skipfs(fp)) == '\n') lineno++; ungetc(ch, fp); - ellipsis = 0; nflds = xuflds(fp, xufldname); if (nflds < 0) return -1; -- 2.43.0