From fc7aaadc95460e930ad82b2cdabda90fa31c751a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 24 Mar 2011 13:37:31 +0100 Subject: process_hkl: Don't require unit cell --- src/process_hkl.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/process_hkl.c b/src/process_hkl.c index f5e705bd..f2fba11c 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -468,12 +468,16 @@ int main(int argc, char *argv[]) output = strdup("processed.hkl"); } - cell = load_cell_from_pdb(pdb); - if ( cell == NULL ) { - ERROR("Failed to load cell from '%s'\n", pdb); - return 1; + if ( pdb != NULL ) { + cell = load_cell_from_pdb(pdb); + if ( cell == NULL ) { + ERROR("Failed to load cell from '%s'\n", pdb); + return 1; + } + free(pdb); + } else { + cell = NULL; } - free(pdb); if ( sym == NULL ) sym = strdup("1"); -- cgit v1.2.3