diff options
Diffstat (limited to 'src/partialator.c')
-rw-r--r-- | src/partialator.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/partialator.c b/src/partialator.c index 6c9748b6..f8db8432 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -258,7 +258,8 @@ int main(int argc, char *argv[]) char *infile = NULL; char *outfile = NULL; char *geomfile = NULL; - char *sym = NULL; + char *sym_str = NULL; + SymOpList *sym; FILE *fh; int nthreads = 1; struct detector *det; @@ -322,7 +323,7 @@ int main(int argc, char *argv[]) break; case 'y' : - sym = strdup(optarg); + sym_str = strdup(optarg); break; case 'o' : @@ -374,7 +375,9 @@ int main(int argc, char *argv[]) outfile = strdup("partialator.hkl"); } - if ( sym == NULL ) sym = strdup("1"); + if ( sym_str == NULL ) sym_str = strdup("1"); + sym = get_pointgroup(sym_str); + free(sym_str); /* Get detector geometry */ det = get_detector_geometry(geomfile); |