From 29d2a374f2f820e6ea0e4bd9c4aa6617393eea0f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 30 Jun 2010 18:33:26 +0200 Subject: Trap invalid symmetries, and handle unspecified symmetry --- src/process_hkl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/process_hkl.c') 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; } -- cgit v1.2.3