JSON to XML patches from Scott McKellar:
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 7 Jan 2008 02:04:54 +0000 (02:04 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 7 Jan 2008 02:04:54 +0000 (02:04 +0000)
commit217a59397e584acac57d18f436771532b0685d8d
tree379b7a7c30ba46d7daa1a951e3460e5d95c92243
parent74b0270a0b3712e3f1f809d1cdfd5cede67a67ee
JSON to XML patches from Scott McKellar:

Guard against multiple #inclusions.

Plug a potential memory leak in the jsonObjectToXML
function.  If the input parameter was NULL we would fail to free
the growing_buffer we had just allocated.  I rearranged it to check
for NULL before allocating the growing_buffer.

Also: I added the static qualifier to the _escape_xml function, to
match the declaration at the top of the file.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1208 9efc2488-bf62-4759-914b-345cdb29e865
include/opensrf/osrf_json_xml.h
src/libopensrf/osrf_json_xml.c