diff options
author | Thomas White <taw@physics.org> | 2020-07-02 11:18:02 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:44 +0200 |
commit | 1533666f82d54be359fbb5df3036dd725a348cb0 (patch) | |
tree | 6f3cc1f1f707bc885c009b8dc89c3bd51aa3d0d8 /libcrystfel | |
parent | cd6ff3ac79dfd5f421adf29afab3388b347a70fb (diff) |
Reject geometry file if it contains unrecognised lines
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/datatemplate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/datatemplate.c b/libcrystfel/src/datatemplate.c index 56aba718..1d749275 100644 --- a/libcrystfel/src/datatemplate.c +++ b/libcrystfel/src/datatemplate.c @@ -850,6 +850,7 @@ DataTemplate *data_template_new_from_string(const char *string_in) if ( eq == NULL ) { ERROR("Bad line in geometry file: '%s'\n", line); free(line); + reject = 1; continue; } |