We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c865d9 + 3623699 commit 1e2e97cCopy full SHA for 1e2e97c
ompi/mca/coll/han/coll_han_dynamic_file.c
@@ -375,9 +375,10 @@ mca_coll_han_init_dynamic_rules(void)
375
if (algorithm_id < 0) {
376
char *endp;
377
algorithm_id = (int)strtol(algorithm_name, &endp, 10);
378
+ char endc = *endp;
379
free(algorithm_name);
380
algorithm_name = NULL;
- if (('\0' != *endp ) || !mca_coll_han_algorithm_id_is_valid(coll_id, algorithm_id)) {
381
+ if (('\0' != endc ) || !mca_coll_han_algorithm_id_is_valid(coll_id, algorithm_id)) {
382
opal_output_verbose(5, mca_coll_han_component.han_output,
383
"coll:han:mca_coll_han_init_dynamic_rules found an error on dynamic rules file %s "
384
"at line %d: unknown algorithm '%s' for %s\n",
0 commit comments