aboutsummaryrefslogtreecommitdiff
path: root/src/compare_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-07-18 14:15:46 -0400
committerThomas White <taw@physics.org>2012-02-22 15:26:54 +0100
commit4a3d0b9d90d25b09c77500667114d9d8f8578e15 (patch)
tree03b9b72bd916c0e185a51fe3a33489ddbb1dec4a /src/compare_hkl.c
parentffa6f9d557e04eb12ccb9e16e4a7beca9e0b8c68 (diff)
compare_hkl: Fix segfault
Diffstat (limited to 'src/compare_hkl.c')
-rw-r--r--src/compare_hkl.c4
1 files changed, 2 insertions, 2 deletions
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;
}