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.