duping method_type before using it as a data in the hash, since method_type is later...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Jan 2008 21:58:50 +0000 (21:58 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Jan 2008 21:58:50 +0000 (21:58 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8559 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_cstore.c

index 0b782a3..dbdb7dd 100644 (file)
@@ -213,7 +213,7 @@ int osrfAppInitialize() {
                        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" ))) {