Skip to content

Commit 458209d

Browse files
committed
added a presence check for exists
This commit closes issue #704.
1 parent 2fdfab4 commit 458209d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stdlib_hashmap_open.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ module subroutine get_other_open_data( map, key, other, exists )
283283
invalid_inmap
284284
end if
285285
else if ( associated( map % inverse(inmap) % target ) ) then
286-
exists = .true.
286+
if ( present(exists) ) exists = .true.
287287
call copy_other( map % inverse(inmap) % target % other, other )
288288
else
289289
if ( present(exists) ) then

0 commit comments

Comments
 (0)