Mercurial > repos > bitlab > gecko
changeset 12:7249f6c19612 draft default tip
Uploaded
author | bitlab |
---|---|
date | Wed, 18 Nov 2020 08:49:53 +0000 |
parents | cf4c0c822ca9 |
children | |
files | gecko/src/csvExtractBorders.c gecko/src/csvFrags2text.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gecko/src/csvExtractBorders.c Wed Nov 18 08:37:31 2020 +0000 +++ b/gecko/src/csvExtractBorders.c Wed Nov 18 08:49:53 2020 +0000 @@ -290,7 +290,7 @@ //SeqX length : 249250621 int64_t xlen, ylen; int skipper = 0; while(skipper < 18){ - (void) fgets(buffer, READING_FRAG_BUFFER, fFrags); + if(NULL == fgets(buffer, READING_FRAG_BUFFER, fFrags)) terror("Couldnt read buffer"); if(skipper == 6){ sscanf(buffer, "%*s %*s : %"PRId64, &xlen); @@ -367,7 +367,7 @@ //readFragment(&frag, fFrags); if(!feof(fFrags)){ - (void) fgets(buffer, READING_FRAG_BUFFER, fFrags); + if(NULL == fgets(buffer, READING_FRAG_BUFFER, fFrags)) terror("Could not read buffer"); csv_frag_to_struct_frag(buffer, &frag);
--- a/gecko/src/csvFrags2text.c Wed Nov 18 08:37:31 2020 +0000 +++ b/gecko/src/csvFrags2text.c Wed Nov 18 08:49:53 2020 +0000 @@ -274,7 +274,7 @@ //readSequenceLength(&n2, fFrags); // Skip first lines char buffer[READING_FRAG_BUFFER]; - int skipper = 0; while(skipper < 18){ (void) fgets(buffer, READING_FRAG_BUFFER, fFrags); skipper++; } + int skipper = 0; while(skipper < 18){ if(NULL==fgets(buffer, READING_FRAG_BUFFER, fFrags)) terror("Couldnt read buffer"); skipper++; } @@ -318,7 +318,7 @@ //readFragment(&frag, fFrags); if(!feof(fFrags)){ - (void) fgets(buffer, READING_FRAG_BUFFER, fFrags); + if(NULL==fgets(buffer, READING_FRAG_BUFFER, fFrags)) terror("Couldnt read buffer"); csv_frag_to_struct_frag(buffer, &frag);