[Opensrf-commits] r1306 - trunk/src/libopensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Apr 11 11:36:22 EDT 2008


Author: miker
Date: 2008-04-11 10:58:49 -0400 (Fri, 11 Apr 2008)
New Revision: 1306

Modified:
   trunk/src/libopensrf/osrf_hash.c
Log:
Applying diff from superceding patch provided by Scott McKellar

Modified: trunk/src/libopensrf/osrf_hash.c
===================================================================
--- trunk/src/libopensrf/osrf_hash.c	2008-04-11 14:42:31 UTC (rev 1305)
+++ trunk/src/libopensrf/osrf_hash.c	2008-04-11 14:58:49 UTC (rev 1306)
@@ -265,7 +265,7 @@
 
 void osrfHashIteratorReset( osrfHashIterator* itr ) {
 	if(!itr) return;
-	itr->current[0] = '\0';
+    if(itr->current) itr->current[0] = '\0';
 	itr->keys = osrfHashKeysInc(itr->hash);
 	itr->currentIdx = 0;
 }



More information about the opensrf-commits mailing list