File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -451,7 +451,8 @@ end subroutine destroy_json_file
451
451
!
452
452
! DESCRIPTION
453
453
! Move the json_value pointer from one json_file to another.
454
- ! Note: "from" is not destroyed, since we want to preserve the pointers in "to".
454
+ ! "from" is then nullified, but not destroyed.
455
+ ! Note: if "from%p" is not associated, then an error is thrown.
455
456
!
456
457
! AUTHOR
457
458
! Jacob Williams : 12/5/2014
@@ -469,7 +470,8 @@ subroutine move_pointer_in_json_file(to,from)
469
470
to % p = > from% p
470
471
nullify(from% p)
471
472
else
472
- nullify(to % p) ! in this case, just nullify it
473
+ call throw_exception(' Error in move_pointer_in_json_file: ' // &
474
+ ' pointer is not associated.' )
473
475
end if
474
476
475
477
end subroutine move_pointer_in_json_file
You can’t perform that action at this time.
0 commit comments