diff --git a/modules/nwtc-library/src/NWTC_IO.f90 b/modules/nwtc-library/src/NWTC_IO.f90 index 937b27195b..77c3dd14fa 100644 --- a/modules/nwtc-library/src/NWTC_IO.f90 +++ b/modules/nwtc-library/src/NWTC_IO.f90 @@ -4111,7 +4111,9 @@ subroutine InitFileInfo_FromNullCString(FileString, FileInfo, ErrStat, ErrMsg) NullLoc = index(FileString(idx:len(FileString)),C_NULL_CHAR) ! started indexing at idx, so add that back in for location in FileString NullLoc = NullLoc + idx - 1 - if (NullLoc > idx) then + if (NullLoc == idx) then ! blank line + FileStringArray(Line) = '' + elseif (NullLoc > idx) then FileStringArray(Line) = trim(FileString(idx:NullLoc-1)) else ! If not NULL terminated diff --git a/reg_tests/r-test b/reg_tests/r-test index b7058644e7..c782721e43 160000 --- a/reg_tests/r-test +++ b/reg_tests/r-test @@ -1 +1 @@ -Subproject commit b7058644e7eaec3f823181b508ac345b6cc32d37 +Subproject commit c782721e43705f27b9996a1ee5cdae548ff9c040