[htdig3-dev] possible problem in HtConfiguration::Find()

Subject: [htdig3-dev] possible problem in HtConfiguration::Find()
From: Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Date: Fri Feb 11 2000 - 12:27:41 PST

Hi, folks. This is mainly for Vadim, but maybe others can help me here.
I'm trying to understand how the new configuration file stuff works, and
I stumbled onto this bit of code in HtConfiguration::Find():

    else { // end "server"
      if (tmpPtr.ptr) {
        if (tmpPtr.ptr)
          return chr;

As far as I can tell, the tmpPtr.dict above will use tmpPtr before it
is set. Can anyone confirm or disprove this? It sure looks wrong to
me, but I don't understand the code enough to fix it to do what it should
be doing here. The condition on the return above also makes little
sense, as the second Find doesn't change tmpPtr.

Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev-unsubscribe@htdig.org You will receive a message to confirm this.

This archive was generated by hypermail 2b28 : Fri Feb 11 2000 - 12:30:20 PST