[open-ils-commits] r11608 - branches/rel_1_4/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Dec 17 15:34:10 EST 2008
Author: miker
Date: 2008-12-17 15:34:06 -0500 (Wed, 17 Dec 2008)
New Revision: 11608
Modified:
branches/rel_1_4/Open-ILS/src/c-apps/oils_cstore.c
Log:
clone the object instead of serializing and then parsing
Modified: branches/rel_1_4/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- branches/rel_1_4/Open-ILS/src/c-apps/oils_cstore.c 2008-12-17 20:25:17 UTC (rev 11607)
+++ branches/rel_1_4/Open-ILS/src/c-apps/oils_cstore.c 2008-12-17 20:34:06 UTC (rev 11608)
@@ -998,6 +998,7 @@
osrfHashGet(meta, "fieldmapper"),
id
);
+ free(id);
jsonObject* fake_params = jsonNewObjectType(JSON_ARRAY);
jsonObjectPush(fake_params, jsonNewObjectType(JSON_HASH));
@@ -1005,10 +1006,9 @@
jsonObjectSetKey(
jsonObjectGetIndex(fake_params, 0),
osrfHashGet(meta, "primarykey"),
- jsonParseString(id)
+ jsonObjectClone(jsonObjectGetIndex(ctx->params, id_pos))
);
- free(id);
if (order_hash) jsonObjectPush(fake_params, jsonObjectClone(order_hash) );
More information about the open-ils-commits
mailing list