projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of size member of Odr_oct
[yaz-moved-to-github.git]
/
src
/
charneg.c
diff --git
a/src/charneg.c
b/src/charneg.c
index
951bb37
..
4125d26
100644
(file)
--- a/
src/charneg.c
+++ b/
src/charneg.c
@@
-36,7
+36,10
@@
static Z_External* z_ext_record2(ODR o, const char *buf)
return 0;
if (!(p->u.octet_aligned->buf = (unsigned char *)odr_malloc(o, len)))
return 0;
return 0;
if (!(p->u.octet_aligned->buf = (unsigned char *)odr_malloc(o, len)))
return 0;
- p->u.octet_aligned->len = p->u.octet_aligned->size = len;
+ p->u.octet_aligned->len = len;
+#if OCT_SIZE
+ p->u.octet_aligned->size = len;
+#endif
memcpy(p->u.octet_aligned->buf, buf, len);
return p;
memcpy(p->u.octet_aligned->buf, buf, len);
return p;