Enabled retrieval of Zebra metadata in XML with element selection in effect
[idzebra-moved-to-github.git] / isamb / isamb.c
index cc242b4..6d8fe2b 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: isamb.c,v 1.45 2004-06-08 15:15:51 adam Exp $
+/* $Id: isamb.c,v 1.47.2.2 2004-08-19 12:39:29 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
    Index Data Aps
 
@@ -117,8 +117,6 @@ struct ISAMB_PP_s {
     struct ISAMB_block **block;
 };
 
-void isamb_pp_pos( ISAMB_PP pp, int *current, int *total );
-         /* FIXME - this should be in a header file */
 
 #if ISAMB_PTR_CODEC
 static void encode_ptr (char **dst, unsigned pos)
@@ -505,7 +503,7 @@ int insert_int (ISAMB b, struct ISAMB_block *p, void *lookahead_item,
     struct ISAMB_block *sub_p1 = 0, *sub_p2 = 0;
     char sub_item[DST_ITEM_MAX];
     int sub_size;
-    int more;
+    int more = 0;
 
     *sp = 0;
 
@@ -635,7 +633,6 @@ int insert_leaf (ISAMB b, struct ISAMB_block **sp1, void *lookahead_item,
         while (1)
         {
             char *dst_item = 0;
-            char *dst_0 = dst;
             char *lookahead_next;
             int d = -1;
             
@@ -674,10 +671,7 @@ int insert_leaf (ISAMB b, struct ISAMB_block **sp1, void *lookahead_item,
             if (d > 0)  
             {
                 if (dst > maxp)
-                {
-                    dst = dst_0;
                     lookahead_item = 0;
-                }
                 else
                 {
                     lookahead_next = lookahead_item;
@@ -1067,7 +1061,7 @@ static void isamb_dump_r (ISAMB b, ISAMB_P pos, void (*pr)(const char *str),
 
 void isamb_dump (ISAMB b, ISAMB_P pos, void (*pr)(const char *str))
 {
-    return isamb_dump_r(b, pos, pr, 0);
+    isamb_dump_r(b, pos, pr, 0);
 }
 
 #if 0