diff options
author | Thomas White <taw@physics.org> | 2010-11-16 10:30:48 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:05 +0100 |
commit | 7ce83ff1633c1764ba567362f66b43e66ffae69d (patch) | |
tree | 11625ca3ef43da7a06ab3e6da95592df2c294ea8 /src/render_hkl.c | |
parent | cde4c385e0ff5ccc945a65dd57c992f2e3ae34dd (diff) |
render_hkl: Check success of loading file correctly
Diffstat (limited to 'src/render_hkl.c')
-rw-r--r-- | src/render_hkl.c | 2 |
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; } |