From: Adam Dickmeiss Date: Tue, 17 Apr 2012 13:52:03 +0000 (+0200) Subject: ZOOM: handle trailing slash for Z39.50 urls X-Git-Tag: v4.2.31~2 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=09db2ad24d6ba8693290d4a5dbc0a741fff74c91;p=yaz-moved-to-github.git ZOOM: handle trailing slash for Z39.50 urls Previously localhost:9999/ would result in en empty database list - which in turn would result in encoding failure for search. --- diff --git a/src/zoom-c.c b/src/zoom-c.c index 0bb0b3f..e763918 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -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;