From a7585fd1220c684189091e7fba2c5d6cf436031e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 12 Sep 2013 15:26:56 +0200 Subject: [PATCH] Default facet start is 1 --- src/sru_facet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sru_facet.c b/src/sru_facet.c index 87eb9ed..67e4733 100644 --- a/src/sru_facet.c +++ b/src/sru_facet.c @@ -86,7 +86,8 @@ void yaz_sru_facet_request(ODR o, Z_FacetList **facetList, const char **limit, } if (av.start || av.useattr) { - wrbuf_printf(w_start, "%d", av.start); + wrbuf_printf(w_start, "%d", + av.start == 0 ? 1 : av.start); if (av.useattr) wrbuf_printf(w_start, ":%s", av.useattr); wrbuf_puts(w_start, ","); -- 1.7.10.4