projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03dccce
)
ZOOM: handle trailing slash for Z39.50 urls
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 17 Apr 2012 13:52:03 +0000
(15:52 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 17 Apr 2012 13:52:03 +0000
(15:52 +0200)
Previously localhost:9999/ would result in en empty database list -
which in turn would result in encoding failure for search.
src/zoom-c.c
patch
|
blob
|
history
diff --git
a/src/zoom-c.c
b/src/zoom-c.c
index
0bb0b3f
..
e763918
100644
(file)
--- 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;