From: Ralph Ronnquist Date: Sat, 16 Oct 2021 10:42:27 +0000 (+1100) Subject: bug fix for hashtable resize X-Git-Tag: 1.3~1 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=0c4c1ba39ccd6d0073af2beb92f21d7e9c77ddb6;p=rrq%2Frrqnet.git bug fix for hashtable resize --- diff --git a/htable.c b/htable.c index 02f08e9..caed606 100644 --- a/htable.c +++ b/htable.c @@ -87,7 +87,7 @@ static unsigned char *htnext(htable *table,int *i) { unsigned char **e = table->data + table->size; for ( ; p < e; p++ ) { (*i) += 1; - if ( *p != 0 || *p != (unsigned char*)1 ) { + if ( *p != 0 && *p != (unsigned char*)1 ) { return *p; } }