aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-09-11 10:34:28 +0200
committerThomas White <taw@physics.org>2014-09-11 10:34:55 +0200
commit0fda2abaf248a64a73f51bd5196f71ff2daf1b38 (patch)
tree077e214568810de472331f3585aa9a167c6ca6dd /src
parent8d6f4e740f669fca4fa580bdfa9e6809bf28aaaa (diff)
ambigator: Don't read peak lists
This fixes a segfault, because the peak list cannot be read without the geometry.
Diffstat (limited to 'src')
-rw-r--r--src/ambigator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ambigator.c b/src/ambigator.c
index 26722aad..601e2d49 100644
--- a/src/ambigator.c
+++ b/src/ambigator.c
@@ -1122,7 +1122,8 @@ int main(int argc, char *argv[])
cur.det = NULL;
- if ( read_chunk(st, &cur) != 0 ) {
+ if ( read_chunk_2(st, &cur, STREAM_READ_UNITCELL
+ | STREAM_READ_REFLECTIONS) != 0 ) {
break;
}