projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update zlint for new z-assoc/pdu-assoc behavior
[yazpp-moved-to-github.git]
/
src
/
yaz-z-databases.cpp
diff --git
a/src/yaz-z-databases.cpp
b/src/yaz-z-databases.cpp
index
1e35179
..
5c52e51
100644
(file)
--- a/
src/yaz-z-databases.cpp
+++ b/
src/yaz-z-databases.cpp
@@
-1,8
+1,11
@@
/* This file is part of the yazpp toolkit.
/* This file is part of the yazpp toolkit.
- * Copyright (C) 1998-2011 Index Data and Mike Taylor
+ * Copyright (C) 1998-2012 Index Data and Mike Taylor
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <string.h>
#include <yazpp/z-databases.h>
#include <string.h>
#include <yazpp/z-databases.h>
@@
-24,7
+27,7
@@
Yaz_Z_Databases::~Yaz_Z_Databases()
void Yaz_Z_Databases::set (int num, const char **db)
{
nmem_reset (nmem);
void Yaz_Z_Databases::set (int num, const char **db)
{
nmem_reset (nmem);
-
+
m_list = (char **) nmem_malloc (nmem, num * sizeof(char*));
m_num = num;
for (int i = 0; i<num; i++)
m_list = (char **) nmem_malloc (nmem, num * sizeof(char*));
m_num = num;
for (int i = 0; i<num; i++)