[open-ils-commits] r14263 - trunk/Open-ILS/src/c-apps (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Oct 5 15:54:15 EDT 2009
Author: scottmk
Date: 2009-10-05 15:54:10 -0400 (Mon, 05 Oct 2009)
New Revision: 14263
Modified:
trunk/Open-ILS/src/c-apps/oils_dataloader.c
Log:
Replace:
jsonParseString( "[]" );
...with the equivalent, and faster:
jsonNewObjectType( JSON_ARRAY );
M Open-ILS/src/c-apps/oils_dataloader.c
Modified: trunk/Open-ILS/src/c-apps/oils_dataloader.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_dataloader.c 2009-10-05 17:49:02 UTC (rev 14262)
+++ trunk/Open-ILS/src/c-apps/oils_dataloader.c 2009-10-05 19:54:10 UTC (rev 14263)
@@ -224,7 +224,7 @@
osrfLogDebug(OSRF_LOG_MARK, "Calling %s -> %s for %s", CSTORE, method_name, item->classname);
// make the param array
- jsonObject* params = jsonParseString("[]");
+ jsonObject* params = jsonNewObjectType( JSON_ARRAY );
jsonObjectSetIndex( params, 0, item );
jsonObjectSetIndex( params, 1, jsonParseString("{\"quiet\":\"true\"}") );
More information about the open-ils-commits
mailing list