X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fzoom-c.c;h=244521580dd3158ad4d45c63e896ffb7136ca7df;hb=cfb5d95cf2aa8514cccbc1c2d071632375a575e7;hp=37c866cfa8fbfdf9bf95c29632c9d387107f6611;hpb=5242cb5a8634bfa38b9333ff7f903e718ac6e292;p=yaz-moved-to-github.git 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);