Because the search may not be executed anyway - if search is already
done and no native sorting is available.
- cl->hits = 0;
- cl->record_offset = 0;
cl->diagnostic = 0;
if (extra_args && *extra_args)
cl->diagnostic = 0;
if (extra_args && *extra_args)
+ cl->hits = 0;
+ cl->record_offset = 0;
rs = ZOOM_connection_search(link, q);
ZOOM_query_destroy(q);
ZOOM_resultset_destroy(cl->resultset);
rs = ZOOM_connection_search(link, q);
ZOOM_query_destroy(q);
ZOOM_resultset_destroy(cl->resultset);