Commit d188e3dc authored by Thomas White's avatar Thomas White
Browse files

indexamajig: Fix segfault if called with no indexing method at all

parent c57e0ce8
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment