diff options
-rw-r--r-- | src/indexamajig.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index aab6a0eb..3c7b0cb9 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -473,8 +473,13 @@ static void run_work(const struct index_args *iargs, rval = fgets(line, 1023, fh); if ( rval == NULL ) { free(line); - ERROR("Read error!\n"); - return; + if ( feof(fh) ) { + allDone = 1; + continue; + } else { + ERROR("Read error!\n"); + return; + } } chomp(line); |