Trivial fix for #149

master
Julian M. Kunkel 2019-05-16 12:56:56 +01:00
parent 9ead56c24e
commit 6abdcc363a
1 changed files with 6 additions and 4 deletions

View File

@ -92,7 +92,7 @@ void DecodeDirective(char *line, IOR_param_t *params, options_all_t * module_opt
char value[MAX_STR];
int rc;
int initialized;
rc = sscanf(line, " %[^=# \t\r\n] = %[^# \t\r\n] ", option, value);
if (rc != 2 && rank == 0) {
fprintf(out_logfile, "Syntax error in configuration options: %s\n",
@ -309,9 +309,6 @@ void DecodeDirective(char *line, IOR_param_t *params, options_all_t * module_opt
}
}
static void decodeDirectiveWrapper(char *line){
DecodeDirective(line, parameters, global_options);
}
/*
* Parse a single line, which may contain multiple comma-seperated directives
@ -333,6 +330,11 @@ void ParseLine(char *line, IOR_param_t * test, options_all_t * module_options)
} while (end != NULL);
}
static void decodeDirectiveWrapper(char *line){
ParseLine(line, parameters, global_options);
}
/*
* Determines if the string "haystack" contains only the string "needle", and
* possibly whitespace before and after needle. Function is case insensitive.