Fix X-Path Searching for numeric structure
[idzebra-moved-to-github.git] / util / zebramap.c
index e12b445..b89aae2 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: zebramap.c,v 1.27 2002-08-02 19:26:57 adam Exp $
+/* $Id: zebramap.c,v 1.29 2002-12-16 22:59:34 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
    Index Data Aps
 
@@ -225,7 +225,8 @@ ZebraMaps zebra_maps_open (Res res, const char *base)
 
     zms->nmem = nmem_create ();
     zms->tabpath = nmem_strdup (zms->nmem,
-                               res_get_def (res, "profilePath", "."));
+                               res_get_def (res, "profilePath",
+                                             DEFAULT_PROFILE_PATH));
     zms->tabroot = 0;
     if (base)
         zms->tabroot = nmem_strdup (zms->nmem, base);
@@ -404,13 +405,8 @@ static int attr_find (AttrType *src, oid_value *attributeSetP)
 
 static void attr_init_APT (AttrType *src, Z_AttributesPlusTerm *zapt, int type)
 {
-#ifdef ASN_COMPILED
     src->attributeList = zapt->attributes->attributes;
     src->num_attributes = zapt->attributes->num_attributes;
-#else
-    src->attributeList = zapt->attributeList;
-    src->num_attributes = zapt->num_attributes;
-#endif
     src->type = type;
     src->major = 0;
     src->minor = 0;