From: Adam Dickmeiss Date: Mon, 10 Mar 2014 10:23:55 +0000 (+0100) Subject: Fix ZOOM_connection_Z3950_search: Assertion YAZ-750 X-Git-Tag: v5.0.19~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=3dbc44820fa5b82541856e83a370f6a1dfddc9a9;p=yaz-moved-to-github.git Fix ZOOM_connection_Z3950_search: Assertion YAZ-750 The standalone ZOOM sort was completely broken since 5.0.13. --- diff --git a/src/zoom-z3950.c b/src/zoom-z3950.c index 8afcd01..63202f3 100644 --- a/src/zoom-z3950.c +++ b/src/zoom-z3950.c @@ -1554,7 +1554,7 @@ zoom_ret ZOOM_connection_Z3950_search(ZOOM_connection c) ZOOM_resultset resultset; int *start, *count; - if (!c->tasks) + if (!c->tasks || c->tasks->which == ZOOM_TASK_SORT) return zoom_complete; assert(c->tasks->which == ZOOM_TASK_SEARCH); resultset = c->tasks->u.search.resultset;