aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-08-24 17:39:01 -0700
committerThomas White <taw@physics.org>2012-02-22 15:27:37 +0100
commit1091711228930b7f443909d802263333b1802549 (patch)
tree28f036d9d658f4830331e2505990609faf88af93 /src
parent4d3d0d192cbc376455a247753b886ba6d18d4216 (diff)
Add the ability to not care about whether the unit cell is needed or not
Diffstat (limited to 'src')
-rw-r--r--src/index.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c
index da4a5a31..862f5145 100644
--- a/src/index.c
+++ b/src/index.c
@@ -238,6 +238,9 @@ IndexingMethod *build_indexer_list(const char *str, int *need_cell)
int n, i;
char **methods;
IndexingMethod *list;
+ int tmp;
+
+ if ( need_cell == NULL ) need_cell = &tmp;
*need_cell = 0;
n = assplode(str, ",", &methods, ASSPLODE_NONE);