aboutsummaryrefslogtreecommitdiff
path: root/src/process_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-06-30 18:33:26 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:52 +0100
commit29d2a374f2f820e6ea0e4bd9c4aa6617393eea0f (patch)
tree38cc2d74f3bb603aafdcad1a43d5c6c224ab59d0 /src/process_hkl.c
parentbb52ba8c082eab21c958616fb71dc36de25a9efb (diff)
Trap invalid symmetries, and handle unspecified symmetry
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r--src/process_hkl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c
index 485e874a..10dd9f79 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -338,6 +338,10 @@ int main(int argc, char *argv[])
pdb = strdup("molecule.pdb");
}
+ if ( sym == NULL ) {
+ sym = strdup("1");
+ }
+
model = new_list_intensity();
model_counts = new_list_count();
cell = load_cell_from_pdb(pdb);
@@ -470,6 +474,7 @@ int main(int argc, char *argv[])
STATUS("%i had no f0 valid value.\n", n_nof0);
delete_items(items);
+ free(sym);
return 0;
}