[open-ils-commits] r8559 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 31 17:26:30 EST 2008
Author: erickson
Date: 2008-01-31 16:58:50 -0500 (Thu, 31 Jan 2008)
New Revision: 8559
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
duping method_type before using it as a data in the hash, since method_type is later freed
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-01-31 21:40:30 UTC (rev 8558)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-01-31 21:58:50 UTC (rev 8559)
@@ -213,7 +213,7 @@
free(_fm);
osrfHashSet( method_meta, method, "methodname" );
- osrfHashSet( method_meta, method_type, "methodtype" );
+ osrfHashSet( method_meta, strdup(method_type), "methodtype" );
int flags = 0;
if (!(strcmp( method_type, "search" )) || !(strcmp( method_type, "id_list" ))) {
More information about the open-ils-commits
mailing list