From 10096cbf98f22f5ec851e181d464cd4264c23d58 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 9 Feb 2006 18:34:57 +0000 Subject: [PATCH] (xundump): Rev. 1.44 broke ef_load(). Fix. --- src/lib/common/xundump.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/common/xundump.c b/src/lib/common/xundump.c index 27b70142..02697e8d 100644 --- a/src/lib/common/xundump.c +++ b/src/lib/common/xundump.c @@ -647,6 +647,11 @@ xundump(FILE *fp, char *file, int expected_table) free(fldidx); free(fldca); + /* Skip empty lines so that callers can easily check for EOF */ + while ((ch = skipfs(fp)) == '\n') + lineno++; + ungetc(ch, fp); + return type; }