From c2efb3c5a24b3cf5f574a5b1d13b6e715ffc4bf4 Mon Sep 17 00:00:00 2001 From: Richard Kirian Date: Fri, 12 Aug 2011 10:37:09 -0700 Subject: get_hkl.c: check for NULL pointer --- src/get_hkl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/get_hkl.c b/src/get_hkl.c index 5edfa088..6fc262a4 100644 --- a/src/get_hkl.c +++ b/src/get_hkl.c @@ -416,6 +416,10 @@ int main(int argc, char *argv[]) } input = read_reflections(input_file); + if (input == NULL) { + ERROR("Problem reading input file %s\n",input_file); + return 1; + } free(input_file); if ( check_list_symmetry(input, mero) ) { ERROR("The input reflection list does not appear to" -- cgit v1.2.3