]> git.evergreen-ils.org Git - OpenSRF.git/commit
Patch from Scott McKellar:
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 15 May 2008 20:55:02 +0000 (20:55 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 15 May 2008 20:55:02 +0000 (20:55 +0000)
commitcf17589baff627b8fd6134010e5850962e218b7b
tree5227b593efbd35be67fb54c7e808676d76fb68cf
parent8c2f58b8e91999e9c1cf10d95c7bbf5e0c6675e1
Patch from Scott McKellar:

This patch tweaks a few things.

1. In json_parse_json_string() we declare a character array buff[],
fill it with nuls, and never refer to it again.  I eliminated it.

2. A few lines below that, we use memset() to clear a three-character
buffer.  I replaced the memset() with an initializer clause.

3. in json_handle_error() we were relying on the osrf_clearbuf macro
to add a terminal nul.  However the plan is for this macro to become
a no-op someday.  I added the nul manually.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1322 9efc2488-bf62-4759-914b-345cdb29e865
src/libopensrf/osrf_legacy_json.c