[open-ils-commits] r20097 - branches/rel_1_6/Open-ILS/src/c-apps (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Apr 15 10:00:47 EDT 2011
Author: miker
Date: 2011-04-15 10:00:45 -0400 (Fri, 15 Apr 2011)
New Revision: 20097
Modified:
branches/rel_1_6/Open-ILS/src/c-apps/oils_cstore.c
Log:
Backported version of r20094: Protect pcrud-ish retrieve from an empty result set
Modified: branches/rel_1_6/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- branches/rel_1_6/Open-ILS/src/c-apps/oils_cstore.c 2011-04-15 13:56:45 UTC (rev 20096)
+++ branches/rel_1_6/Open-ILS/src/c-apps/oils_cstore.c 2011-04-15 14:00:45 UTC (rev 20097)
@@ -1598,7 +1598,7 @@
jsonObjectFree( fake_params );
#ifdef PCRUD
- if(!verifyObjectPCRUD(ctx, obj)) {
+ if(NULL != obj && !verifyObjectPCRUD(ctx, obj)) {
jsonObjectFree(obj);
*err = -1;
More information about the open-ils-commits
mailing list