From ae635d079e9a473471947652602babb016d8ade4 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 6 Jun 2000 13:24:51 -0500 Subject: [svn-r2343] *sigh* Corrected H5AC_compare again. (Trying to fix a bug which only is manifesting on Windows, so it's a bit of a remote-control problem...) --- src/H5AC.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/H5AC.c b/src/H5AC.c index 5f22c7b..00ecf0e 100644 --- a/src/H5AC.c +++ b/src/H5AC.c @@ -311,11 +311,16 @@ H5AC_compare(const void *_a, const void *_b) assert(current_cache_g); - if(NULL==current_cache_g->slot[a]) { - if (NULL == current_cache_g->slot[b]) { - return 0; - } else { - return -1; + if(NULL==current_cache_g->slot[a] || NULL == current_cache_g->slot[b]) { + if(NULL==current_cache_g->slot[a]) { + if (NULL == current_cache_g->slot[b]) { + return 0; + } else { + return -1; + } + } + else { + return 1; } } else if (NULL == current_cache_g->slot[a]->type) { -- cgit v0.12