2) getEntry should set pointer to NULL when it returns 0
CVS patchset: 313
CVS date: 1996/02/19 04:28:31
struct indexEntry *index = h->index;
int x = h->entries_used;
- if (! h->fully_sorted) {
+ if (h->fully_sorted) {
return bsearch(&tag, index, x, sizeof(struct indexEntry), tagCompare);
} else {
while (x && (tag != index->tag)) {
/* First find the tag */
index = findEntry(h, tag);
if (! index) {
+ **p = NULL;
return 0;
}