Browse Source
When 'level' is a valid model parameter, then it was processed like any other parameter, but additionally the `if (strcmp(parm, "level") == 0)' invoked INPgetValue() a second time. This special processing is meant to allow "level" for all models whether they make use of it or not. The excess invocation of INPgetValue() didn't cause harm, merely because the next token after the "level=number" almost necessarily is a string (the beginning "name=" of the next assignment) thus not a parse-able number, thus the second INPgetValue() didn't modify the 'line' pointer. To sanitise the code invoke the "level" skipping only if "level" is not recognised as a valid model parameter.pre-master-46
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue