Commit c2efb3c5 authored by Richard Kirian's avatar Richard Kirian Committed by Thomas White
Browse files

get_hkl.c: check for NULL pointer

parent 14267c3a
...@@ -416,6 +416,10 @@ int main(int argc, char *argv[]) ...@@ -416,6 +416,10 @@ int main(int argc, char *argv[])
} }
input = read_reflections(input_file); input = read_reflections(input_file);
if (input == NULL) {
ERROR("Problem reading input file %s\n",input_file);
return 1;
}
free(input_file); free(input_file);
if ( check_list_symmetry(input, mero) ) { if ( check_list_symmetry(input, mero) ) {
ERROR("The input reflection list does not appear to" ERROR("The input reflection list does not appear to"
......
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