[open-ils-commits] r8043 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 8 10:51:32 EST 2007
Author: miker
Date: 2007-11-08 10:35:41 -0500 (Thu, 08 Nov 2007)
New Revision: 8043
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
another missing variable definition
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2007-11-08 15:31:33 UTC (rev 8042)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2007-11-08 15:35:41 UTC (rev 8043)
@@ -1149,14 +1149,12 @@
jsonObject* func_item;
while ( (func_item = jsonObjectGetIndex(array, func_item_index++)) ) {
- val = jsonObjectToSimpleString(func_item);
+ char* val = jsonObjectToSimpleString(func_item);
if ( dbi_conn_quote_string(dbhandle, &val) ) {
buffer_fadd( sql_buf, ",%s", val );
- free(val);
} else {
osrfLogError(OSRF_LOG_MARK, "%s: Error quoting key string [%s]", MODULENAME, val);
- free(val);
free(field_transform);
buffer_free(sql_buf);
return NULL;
More information about the open-ils-commits
mailing list