X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoom-c.c;h=cbcb0289f0c528bd208c81837acc883d3eab4f87;hp=d5e5d8336bbcaa29d5bcfee1d60420203c6b2d26;hb=c3b984a6d1cf19b1731b7e783ae2c0fd539277ac;hpb=a774858896a9b56c966edbfb70d8eae1c91c4ad1 diff --git a/zoom/zoom-c.c b/zoom/zoom-c.c index d5e5d83..cbcb028 100644 --- a/zoom/zoom-c.c +++ b/zoom/zoom-c.c @@ -1,5 +1,5 @@ /* - * $Id: zoom-c.c,v 1.34 2002-07-01 12:59:12 adam Exp $ + * $Id: zoom-c.c,v 1.35 2002-07-03 13:36:55 adam Exp $ * * ZOOM layer for C, connections, result sets, queries. */ @@ -208,10 +208,13 @@ static char **set_DatabaseNames (ZOOM_connection con, ZOOM_options options, if (!cp || !*cp) { - cp = strchr (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++; - } + } if (cp) { c = cp;