Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

clarification needed. query.c : DoLookup() QI 3.1B7

0 views
Skip to first unread message

Jim Doyle

unread,
Feb 1, 1996, 3:00:00 AM2/1/96
to
I believe I've found a bug (QI 3.1B7)-- Is there a repository
of patches against the 3.1B7 release ??

In the function DoLookup():

This is done:
---------------------------------------------------------------------
entries = do_lookup(keyStrings, NULL)
.
.
for ( goodEntry = anEntry = entries; *anEntry; anEntry++ )
{
.
.
.
}
*goodEntry = 0; <=== I dont understand this..
.
.
return(entries);
---------------------------------------------------------------------

If do_lookup gets a single valid entry, then after one iteration
through the loop, *goodEntry = 0 is equivalent to *entries = 0;
Dont you really want to do *anEntry = 0;

-- Jim

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Jim Doyle Boston University - IT - Distributed Systems Group
email: j...@bu.edu tel: 617-353-8248

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

=========================================================================

To un-subscribe from this list, send email to LIST...@POSTOFFICE.CSO.UIUC.EDU with the command

UNSUB INFO-PH

in the *body* of the message.

0 new messages