ZOOM: handle trailing slash for Z39.50 urls
[yaz-moved-to-github.git] / src / zoom-c.c
index 0bb0b3f..e763918 100644 (file)
@@ -337,7 +337,7 @@ char **ZOOM_connection_get_databases(ZOOM_connection con, ZOOM_options options,
         if (cp)
             cp++;
     }
-    if (!cp)
+    if (!cp || !*cp)
         cp = "Default";
     nmem_strsplit(odr_getmem(odr), "+", cp,  &databaseNames, num);
     return databaseNames;