From David.Graff@BroadVision.com Thu Apr 19 15:26:12 2001 Date: Thu, 19 Apr 2001 14:46:48 -0700 From: "Graff, David" To: "'htdig-general@lists.sourceforge.net'" Subject: [htdig] [PATCH] Correction to allow compilation under Sparc C 4.2 [The following text is in the "iso-8859-1" character set] [Your display is set for the "US-ASCII" character set] [Some characters may be displayed incorrectly] The included patch allows for compilation of htdig under Sparc C 4.2. It is simply a pre-declaration of a variable in a while loop in the file htdig/Retriever.cc ============================================= --- htdig-3.1.5/htdig/Retriever.cc Thu Feb 24 21:29:10 2000 +++ htdig-3.1.5.sparc/htdig/Retriever.cc Thu Apr 19 17:34:20 2001 @@ -837,7 +837,8 @@ Retriever::GetLocal(char *url) *local += &url[prefix->length()]; if (local->last() == '/' && defaultdocs) { defaultdocs->Start_Get(); - while (String *defaultdoc = (String *)defaultdocs->Get_Next()) { + String *defaultdoc= NULL; + while (defaultdoc = (String *)defaultdocs->Get_Next()) { String *localdefault = new String(*local, local->length()+defaul tdoc->length()+1); localdefault->append(*defaultdoc); local_names->Add(localdefault); @@ -964,7 +965,8 @@ Retriever::GetLocalUser(char *url, Strin *local += rest; if (local->last() == '/' && defaultdocs) { defaultdocs->Start_Get(); - while (String *defaultdoc = (String *)defaultdocs->Get_Next()) { + String *defaultdoc= NULL; + while (defaultdoc = (String *)defaultdocs->Get_Next()) { String *localdefault = new String(*local, local->length()+defaultdoc ->length()+1); localdefault->append(*defaultdoc); local_names->Add(localdefault);============================================= -- David J. Graff Broadvision/Atlanta - Principal Consultant mailto:dgraff@broadvision.com Phone: (678) 427-5412 This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, dissemination of this communication is prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately. _______________________________________________ htdig-general mailing list To unsubscribe, send a message to with a subject of unsubscribe FAQ: http://htdig.sourceforge.net/FAQ.html