Vadim Chekan wrote:
> 
> Hello!
> 
> Any DocumentRef class have descriptions field.
> 
> Is it possible: descriptions==NULL ?

If yes, here's patch:

Index: Display.cc
===================================================================
RCS file: /opt/htdig/cvs/htdig3/htsearch/Display.cc,v
retrieving revision 1.61
diff -u -r1.61 Display.cc
--- Display.cc  1999/03/21 14:42:20     1.61
+++ Display.cc  1999/03/22 15:57:24
@@ -341,7 +341,8 @@
        }
        vars.Add("DESCRIPTIONS", str);
        String *description = new String();
-       *description << ((String*) (*list)[0]);
+       if (list->Count() )
+           *description << ((String*) (*list)[0]);
        vars.Add("DESCRIPTION", description);
     }
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to