Skip to content

Commit

Permalink
Don't overwrite name variable in SAX
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby White committed Jun 2, 2008
1 parent 2e31175 commit 66ec7cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sax/m_sax_parser.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2345,6 +2345,7 @@ subroutine open_tag
end subroutine open_tag

subroutine close_tag
character :: dummy
wf_stack(1) = wf_stack(1) - 1
if (wf_stack(1)<0) then
call add_error(fx%error_stack, &
Expand All @@ -2364,7 +2365,7 @@ subroutine close_tag
return
endif
endif
fx%name = pop_elstack(fx%elstack)
dummy = pop_elstack(fx%elstack)
if (present(endElement_handler)) then
if (namespaces_.and.getURIofQName(fx,str_vs(fx%name))==invalidNS) then
! no namespace was found for the current element, we must be
Expand Down

0 comments on commit 66ec7cc

Please sign in to comment.