was probably my idea of a feature, but if the input buffer actually
does has a length of zero (as Melchior discovered for the case of a
zero-length .nas file) then there will be no null.
void FGNasalSys::initModule(const char* moduleName, const char* fileName,
const char* src, int len)
{
- if(len == 0) len = strlen(src);
-
naRef code = parse(fileName, src, len);
if(naIsNil(code))
return;