[open-ils-commits] r7570 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Jul 21 15:32:33 EDT 2007
Author: erickson
Date: 2007-07-21 15:32:01 -0400 (Sat, 21 Jul 2007)
New Revision: 7570
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
protecting class name check from objects with NULL classname
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2007-07-21 16:05:30 UTC (rev 7569)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2007-07-21 19:32:01 UTC (rev 7570)
@@ -655,7 +655,7 @@
osrfHash* meta = (osrfHash*) ctx->method->userData;
osrfHash* class = osrfHashGet( meta, "class" );
- if ((strcmp( osrfHashGet(class, "classname"), param->classname ))) {
+ if (!param->classname || (strcmp( osrfHashGet(class, "classname"), param->classname ))) {
growing_buffer* msg = buffer_init(128);
buffer_fadd(
More information about the open-ils-commits
mailing list