diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/im-sandbox.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c index 8187612d..eb823683 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -345,15 +345,12 @@ static void run_work(const struct index_args *iargs, line = malloc(1024*sizeof(char)); rval = fgets(line, 1023, fh); if ( rval == NULL ) { + + ERROR("Read error!\n"); free(line); - if ( feof(fh) ) { - allDone = 1; - STATUS("Exiting!\n"); - continue; - } else { - ERROR("Read error!\n"); - break; - } + allDone = 1; + continue; + } chomp(line); |