Initialize count, type due to removed rset terms
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 25 Aug 2004 09:17:33 +0000 (09:17 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 25 Aug 2004 09:17:33 +0000 (09:17 +0000)
index/zserver.c

index 7624e11..41527cf 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: zserver.c,v 1.120 2004-08-20 14:44:46 heikki Exp $
+/* $Id: zserver.c,v 1.121 2004-08-25 09:17:33 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
    Index Data Aps
 
@@ -170,10 +170,10 @@ bend_initresult *bend_init (bend_initrequest *q)
 
 static void search_terms (ZebraHandle zh, bend_search_rr *r)
 {
-    zint count;
+    zint count = 0;
     int no_terms;
     int i;
-    int type;
+    int type = Z_Term_general
     struct Z_External *ext;
     Z_SearchInfoReport *sr;