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
Add version and date in NEWS
[yaz-moved-to-github.git]
/
src
/
charneg.c
diff --git
a/src/charneg.c
b/src/charneg.c
index
b7e750c
..
2531346
100644
(file)
--- a/
src/charneg.c
+++ b/
src/charneg.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-28,17
+28,10
@@
static Z_External* z_ext_record2(ODR o, const char *buf)
return 0;
p->descriptor = 0;
p->indirect_reference = 0;
return 0;
p->descriptor = 0;
p->indirect_reference = 0;
-
p->direct_reference = odr_oiddup(o, yaz_oid_negot_charset_id);
p->direct_reference = odr_oiddup(o, yaz_oid_negot_charset_id);
-
p->which = Z_External_octet;
p->which = Z_External_octet;
- if (!(p->u.octet_aligned = (Odr_oct *)odr_malloc(o, sizeof(Odr_oct))))
- return 0;
- if (!(p->u.octet_aligned->buf = (char *)odr_malloc(o, len)))
- return 0;
- p->u.octet_aligned->len = len;
- memcpy(p->u.octet_aligned->buf, buf, len);
-
+ p->u.octet_aligned =
+ odr_create_Odr_oct(o, buf, len);
return p;
}
return p;
}