aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-02-01 14:30:23 +0100
committerThomas White <taw@physics.org>2017-02-01 14:30:23 +0100
commit7aea676ae486da8db04724d936241e7416ddd05f (patch)
treeb1943111262968f0a71d204435ccdf2bbe61abd9 /src
parent7dbbfa426b1569ebac2fcea8d74306db09fa5bcb (diff)
partialator: Exit if point group is unrecognised
Diffstat (limited to 'src')
-rw-r--r--src/partialator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 5b6ea2fb..09feebb4 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -964,6 +964,7 @@ int main(int argc, char *argv[])
pointgroup_warning(sym_str);
sym = get_pointgroup(sym_str);
free(sym_str);
+ if ( sym == NULL ) return 1;
if ( pmodel_str != NULL ) {
if ( strcmp(pmodel_str, "unity") == 0 ) {