diff options
-rw-r--r-- | src/reflections.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/reflections.c b/src/reflections.c index 70b2744c..b26d9528 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -129,6 +129,7 @@ ReflItemList *read_reflections(const char *filename, int cts; rval = fgets(line, 1023, fh); + if ( rval == NULL ) continue; r = sscanf(line, "%i %i %i %f %s %f %f %i", &h, &k, &l, &intensity, phs, &sigma, &res, &cts); if ( r >= 8 ) { |