diff options
author | Thomas White <taw@physics.org> | 2012-10-02 15:03:11 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-10-02 15:03:11 +0200 |
commit | 6633efd7a1931925bb6814dad0761f10d0a457b7 (patch) | |
tree | 4ad51c1254344fad9bac57ab4307d6aabea1aa07 /libcrystfel/src/symmetry.c | |
parent | ea8e5c457b96184bd152eb20b72fb15682b18474 (diff) | |
parent | d51007fe1a9d8a797bdd9b71eea715a09252cc6e (diff) |
Merge branch 'tom/symmetry'
Diffstat (limited to 'libcrystfel/src/symmetry.c')
-rw-r--r-- | libcrystfel/src/symmetry.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libcrystfel/src/symmetry.c b/libcrystfel/src/symmetry.c index 0352e441..52a9aae6 100644 --- a/libcrystfel/src/symmetry.c +++ b/libcrystfel/src/symmetry.c @@ -68,7 +68,6 @@ struct _symoplist int n_ops; int max_ops; char *name; - int *divisors; int num_equivs; }; @@ -84,7 +83,6 @@ struct _symopmask static void alloc_ops(SymOpList *ops) { ops->ops = realloc(ops->ops, ops->max_ops*sizeof(struct sym_op)); - ops->divisors = realloc(ops->divisors, ops->max_ops*sizeof(int)); } @@ -127,7 +125,6 @@ static SymOpList *new_symoplist() new->max_ops = 16; new->n_ops = 0; new->ops = NULL; - new->divisors = NULL; new->name = NULL; new->num_equivs = 1; alloc_ops(new); @@ -259,6 +256,7 @@ int num_equivs(const SymOpList *ops, const SymOpMask *m) static signed int *v(signed int h, signed int k, signed int i, signed int l) { signed int *vec = malloc(3*sizeof(signed int)); + if ( vec == NULL ) return NULL; /* Convert back to 3-index form now */ vec[0] = h-i; vec[1] = k-i; vec[2] = l; return vec; |