From decbbc7c15f7c05fae05f6bcb4e677caf77959da Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 23 Sep 2013 09:37:34 +0200 Subject: [PATCH] yaz_encode_sru_extra: keep existing extra args --- src/srwutil.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/srwutil.c b/src/srwutil.c index 38ee0d0..178d886 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -1101,6 +1101,9 @@ void yaz_encode_sru_extra(Z_SRW_PDU *sr, ODR odr, const char *extra_args) Z_SRW_extra_arg **ea = &sr->extra_args; yaz_uri_to_array(extra_args, odr, &name, &val); + /** append rather than override */ + while (*ea) + ea = &(*ea)->next; while (*name) { *ea = (Z_SRW_extra_arg *) odr_malloc(odr, sizeof(**ea)); -- 1.7.10.4