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
Use thread-safe rpn2cql and cql2rpn from YAZ YPP-14
[yazpp-moved-to-github.git]
/
src
/
gdu.cpp
diff --git
a/src/gdu.cpp
b/src/gdu.cpp
index
231e8ef
..
829cfb5
100644
(file)
--- a/
src/gdu.cpp
+++ b/
src/gdu.cpp
@@
-1,5
+1,5
@@
/* 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) Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-42,9
+42,10
@@
void GDU::base(Z_GDU *gdu, ODR encode)
{
int len;
char *buf = odr_getbuf(encode, &len, 0);
{
int len;
char *buf = odr_getbuf(encode, &len, 0);
-
+
odr_setbuf(m_decode, buf, len, 0);
odr_setbuf(m_decode, buf, len, 0);
- z_GDU(m_decode, &m_gdu, 0, 0);
+ if (!z_GDU(m_decode, &m_gdu, 0, 0))
+ m_gdu = 0;
}
odr_destroy(encode);
}
}
odr_destroy(encode);
}