From b326c7d0d308849ef291814eab5cf2923220f4ff Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 20 Oct 2010 21:23:24 -0700 Subject: Don't re-count the last reflection when loading --- src/reflections.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 ) { -- cgit v1.2.3