aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indexamajig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 2a81766b..51461c91 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -613,7 +613,8 @@ int main(int argc, char *argv[])
return 1;
}
- if ( strcmp(indm_str, "none") == 0 ) {
+ if ( (indm_str == NULL) ||
+ ((indm_str != NULL) && (strcmp(indm_str, "none") == 0)) ) {
STATUS("Not indexing anything.\n");
indexer_needs_cell = 0;
reduction_needs_cell = 0;