X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Furi.c;h=bae9a0a85860122839951a1ebf3f34a7f8b792f0;hb=00537b483d646bd04a204708ecbde708861f044e;hp=ecf1adc3fd2803ec195e7f6d35294b486615734c;hpb=692cfa1de9dd855c1725db48f6d0a2cddcae9fcd;p=yaz-moved-to-github.git diff --git a/src/uri.c b/src/uri.c index ecf1adc..bae9a0a 100644 --- a/src/uri.c +++ b/src/uri.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ /** @@ -101,7 +101,7 @@ void yaz_array_to_uri(char **path, ODR o, char **name, char **value) for(i = 0; name[i]; i++) sz += strlen(name[i]) + 3 + strlen(value[i]) * 3; *path = (char *) odr_malloc(o, sz); - + for(i = 0; name[i]; i++) { size_t ilen; @@ -190,7 +190,7 @@ char *yaz_uri_val(const char *path, const char *name, ODR o) { size_t i = 0; char *ret; - + path = p1 + 1; p1 = strchr(path, '&'); if (!p1)