[open-ils-commits] r11572 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 15 10:12:19 EST 2008
Author: miker
Date: 2008-12-15 10:12:17 -0500 (Mon, 15 Dec 2008)
New Revision: 11572
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
bad array index variable in foreign context field loop
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-12-15 15:00:43 UTC (rev 11571)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-12-15 15:12:17 UTC (rev 11572)
@@ -1015,8 +1015,9 @@
free(foreign_pkey_value);
free(foreign_pkey);
+ int j = 0;
char* foreign_field = NULL;
- while ( (foreign_field = osrfStringArrayGetString(osrfHashGet(fcontext,"context"), i++)) ) {
+ while ( (foreign_field = osrfStringArrayGetString(osrfHashGet(fcontext,"context"), j++)) ) {
osrfStringArrayAdd( context_org_array, oilsFMGetString( _fparam, foreign_field ) );
osrfLogDebug(
OSRF_LOG_MARK,
More information about the open-ils-commits
mailing list