Removed duplicate variable for turbo marcxml (using_turbo_format). Now works in zooms...
[yaz-moved-to-github.git] / src / zoom-c.c
index 42f30a0..4a208b3 100644 (file)
@@ -2081,8 +2081,9 @@ static const char *get_record_format(ZOOM_record rec, int *len,
     if (*format == '1' && len)
     {
         /* try to XML format res */
-        xmlKeepBlanksDefault(0);
-        xmlDocPtr doc = xmlParseMemory(res, *len);
+        xmlDocPtr doc;
+        xmlKeepBlanksDefault(0); /* get get xmlDocFormatMemory to work! */
+        doc = xmlParseMemory(res, *len);
         if (doc)
         {
             if (rec->xml_mem)
@@ -4669,6 +4670,11 @@ ZOOM_API(int) ZOOM_connection_get_timeout(ZOOM_connection c)
     return ZOOM_options_get_int(c->options, "timeout", 30);
 }
 
+ZOOM_API(void) ZOOM_connection_close(ZOOM_connection c)
+{
+    do_close(c);
+}
+
 /*
  * Local variables:
  * c-basic-offset: 4