projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Using the ICU wrapper from YAZ rather than its own.
[pazpar2-moved-to-github.git]
/
src
/
database.c
diff --git
a/src/database.c
b/src/database.c
index
347c26b
..
fab9249
100644
(file)
--- a/
src/database.c
+++ b/
src/database.c
@@
-17,6
+17,10
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxslt/xslt.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxslt/xslt.h>
@@
-130,7
+134,7
@@
static struct database *load_database(const char *id)
if ((dbname = strchr(hostport, '/')))
*(dbname++) = '\0';
else
if ((dbname = strchr(hostport, '/')))
*(dbname++) = '\0';
else
- dbname = "Default";
+ dbname = "";
if (!(host = find_host(hostport)))
return 0;
db = nmem_malloc(nmem, sizeof(*db));
if (!(host = find_host(hostport)))
return 0;
db = nmem_malloc(nmem, sizeof(*db));