aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-11-16 10:30:48 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:05 +0100
commit7ce83ff1633c1764ba567362f66b43e66ffae69d (patch)
tree11625ca3ef43da7a06ab3e6da95592df2c294ea8
parentcde4c385e0ff5ccc945a65dd57c992f2e3ae34dd (diff)
render_hkl: Check success of loading file correctly
-rw-r--r--src/render_hkl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render_hkl.c b/src/render_hkl.c
index b7559cf5..a4ad340a 100644
--- a/src/render_hkl.c
+++ b/src/render_hkl.c
@@ -615,7 +615,7 @@ int main(int argc, char *argv[])
ref = new_list_intensity();
cts = new_list_count();
ReflItemList *items = read_reflections(infile, ref, NULL, cts, NULL);
- if ( ref == NULL ) {
+ if ( items == NULL ) {
ERROR("Couldn't open file '%s'\n", infile);
return 1;
}