diff options
author | Richard Kirian <rkirian@asu.edu> | 2011-08-12 10:37:09 -0700 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:36 +0100 |
commit | c2efb3c5a24b3cf5f574a5b1d13b6e715ffc4bf4 (patch) | |
tree | e55e8e4a6eadcc60f46beea3ec33e9a0879a46ac /src/get_hkl.c | |
parent | 14267c3aa60bf8dee81a87fd5c2aaa82cf7d525e (diff) |
get_hkl.c: check for NULL pointer
Diffstat (limited to 'src/get_hkl.c')
-rw-r--r-- | src/get_hkl.c | 4 |
1 files changed, 4 insertions, 0 deletions
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" |