From 5b6a49daa5f7adb865cf0465a6623aee1d5673d3 Mon Sep 17 00:00:00 2001 From: scottmk Date: Mon, 5 Oct 2009 19:54:10 +0000 Subject: [PATCH] Replace: jsonParseString( "[]" ); ...with the equivalent, and faster: jsonNewObjectType( JSON_ARRAY ); M Open-ILS/src/c-apps/oils_dataloader.c git-svn-id: svn://svn.open-ils.org/ILS/trunk@14263 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/c-apps/oils_dataloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/c-apps/oils_dataloader.c b/Open-ILS/src/c-apps/oils_dataloader.c index 5e10426964..f7713d5262 100644 --- a/Open-ILS/src/c-apps/oils_dataloader.c +++ b/Open-ILS/src/c-apps/oils_dataloader.c @@ -224,7 +224,7 @@ static int sendCommand ( const char* json ) { 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\"}") ); -- 2.11.0