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
GDU: if decode fails in assignment, reset m_gdu ptr
[yazpp-moved-to-github.git]
/
src
/
gdu.cpp
diff --git
a/src/gdu.cpp
b/src/gdu.cpp
index
fb87251
..
467ded2
100644
(file)
--- a/
src/gdu.cpp
+++ b/
src/gdu.cpp
@@
-44,7
+44,8
@@
void GDU::base(Z_GDU *gdu, ODR encode)
char *buf = odr_getbuf(encode, &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);
}