Commit 7ce83ff1 authored by Thomas White's avatar Thomas White
Browse files

render_hkl: Check success of loading file correctly

parent cde4c385
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment