projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f60a3fd
)
Simplify construct
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 12 Sep 2012 12:25:01 +0000
(14:25 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 12 Sep 2012 12:25:01 +0000
(14:25 +0200)
src/marcdisp.c
patch
|
blob
|
history
diff --git
a/src/marcdisp.c
b/src/marcdisp.c
index
6ae2f61
..
50447be
100644
(file)
--- a/
src/marcdisp.c
+++ b/
src/marcdisp.c
@@
-963,13
+963,9
@@
static int yaz_marc_write_xml_turbo_xml(yaz_marc_t mt, xmlNode **root_ptr,
xmlAddChild(record_ptr, ptr);
break;
case YAZ_MARC_LEADER:
- {
- char *field = "leader";
- field = "l";
- xmlNewTextChild(record_ptr, ns_record, BAD_CAST field,
+ xmlNewTextChild(record_ptr, ns_record, BAD_CAST "l",
BAD_CAST n->u.leader);
- }
- break;
+ break;
}
}
wrbuf_destroy(wr_cdata);