X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fzoom-c.c;h=244521580dd3158ad4d45c63e896ffb7136ca7df;hp=37c866cfa8fbfdf9bf95c29632c9d387107f6611;hb=fe42f72dc30321041420cf2d1a83867b1c450f38;hpb=5242cb5a8634bfa38b9333ff7f903e718ac6e292 diff --git a/src/zoom-c.c b/src/zoom-c.c index 37c866c..2445215 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -329,14 +329,7 @@ char **ZOOM_connection_get_databases(ZOOM_connection con, ZOOM_options options, const char *cp = ZOOM_options_get(options, "databaseName"); if ((!cp || !*cp) && con->host_port) - { - if (strncmp(con->host_port, "unix:", 5) == 0) - cp = strchr(con->host_port+5, ':'); - else - cp = strchr(con->host_port, '/'); - if (cp) - cp++; - } + cs_get_host_args(con->host_port, &cp); if (!cp || !*cp) cp = "Default"; nmem_strsplit(odr_getmem(odr), "+", cp, &databaseNames, num);