diff options
author | Thomas White <taw@physics.org> | 2011-03-24 13:37:31 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:21 +0100 |
commit | fc7aaadc95460e930ad82b2cdabda90fa31c751a (patch) | |
tree | cf2d5b556f8f33e790204e04a49c8a7796b7c78f /src | |
parent | e34c96e54503c17a272a18e3466618349bfb7dc4 (diff) |
process_hkl: Don't require unit cell
Diffstat (limited to 'src')
-rw-r--r-- | src/process_hkl.c | 14 |
1 files 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"); |