Zero the visited flag after an encoding error
authorPetri Lehtinen <petri@digip.org>
Fri, 14 May 2010 05:47:24 +0000 (08:47 +0300)
committerPetri Lehtinen <petri@digip.org>
Fri, 14 May 2010 06:23:35 +0000 (09:23 +0300)
commit453e4c0aa2fbca95676fa966cc5602f5daf0a1f2
treeb514d443419165387855f7185210bc6bb959342f
parent2630980f49088a06c32cebdc866e4f518106af29
Zero the visited flag after an encoding error

When encoding an array or object ends in an error, the visited flag
wasn't zeroed, causing subsequent encoding attempts to fail. This
patch fixes the problem by always zeroing the visited flag.
src/dump.c
test/suites/api/test_dump.c