X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsrwutil.c;h=83172d5df1cd57cf5ed2813434aef28176cebd9f;hp=2591fc99a460c0382c13f222f2d04e73c5b77eaa;hb=2fc1ed65e59499ef747922ea9763d8f21f056f6e;hpb=758265d6f85aa627387be40bfa4fe90b829ec4f3 diff --git a/src/srwutil.c b/src/srwutil.c index 2591fc9..83172d5 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -1182,6 +1182,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));