From 374be5d02dbd1d37bf3c9e5f2db913eaf7b58f26 Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 11 Apr 2008 14:58:49 +0000 Subject: [PATCH] Applying diff from superceding patch provided by Scott McKellar git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1306 9efc2488-bf62-4759-914b-345cdb29e865 --- src/libopensrf/osrf_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libopensrf/osrf_hash.c b/src/libopensrf/osrf_hash.c index 091089d..972ccfb 100644 --- a/src/libopensrf/osrf_hash.c +++ b/src/libopensrf/osrf_hash.c @@ -265,7 +265,7 @@ void osrfHashIteratorFree( osrfHashIterator* itr ) { 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; } -- 2.11.0