From 09db2ad24d6ba8693290d4a5dbc0a741fff74c91 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 17 Apr 2012 15:52:03 +0200 Subject: [PATCH] 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. --- src/zoom-c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.4