corrected error discovered by Haiming Zhang

This commit is contained in:
Franz Roters 2016-03-09 15:36:11 +01:00
parent 2296929344
commit 976803ba0b
1 changed files with 1 additions and 2 deletions

View File

@ -1237,8 +1237,7 @@ character(len=300) pure function IO_extractValue(pair,key)
IO_extractValue = ''
myChunk = scan(pair,SEP)
if (myChunk > 0 .and. pair(:myChunk-1) == key(:myChunk-1)) &
IO_extractValue = pair(myChunk+1:) ! extract value if key matches
if (myChunk > 0 .and. pair(:myChunk-1) == key) IO_extractValue = pair(myChunk+1:) ! extract value if key matches
end function IO_extractValue