From 4a3d0b9d90d25b09c77500667114d9d8f8578e15 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 18 Jul 2010 14:15:46 -0400 Subject: compare_hkl: Fix segfault --- src/compare_hkl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compare_hkl.c') diff --git a/src/compare_hkl.c b/src/compare_hkl.c index 27ca438a..83ca98bb 100644 --- a/src/compare_hkl.c +++ b/src/compare_hkl.c @@ -101,13 +101,13 @@ int main(int argc, char *argv[]) cell = load_cell_from_pdb("molecule.pdb"); ref1 = new_list_intensity(); i1 = read_reflections(afile, ref1, NULL, NULL); - if ( ref1 == NULL ) { + if ( i1 == NULL ) { ERROR("Couldn't open file '%s'\n", afile); return 1; } ref2 = new_list_intensity(); i2 = read_reflections(bfile, ref2, NULL, NULL); - if ( ref2 == NULL ) { + if ( i2 == NULL ) { ERROR("Couldn't open file '%s'\n", bfile); return 1; } -- cgit v1.2.3