From: Adam Dickmeiss Date: Tue, 13 Oct 1998 21:23:26 +0000 (+0000) Subject: Fixed searchStatus method. X-Git-Tag: IRTCL.1.4~41 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=dd4fad180935761c6a4482d4c5760f42559ef0e1;p=ir-tcl-moved-to-github.git Fixed searchStatus method. --- diff --git a/ir-tcl.c b/ir-tcl.c index c579222..abd1138 100644 --- a/ir-tcl.c +++ b/ir-tcl.c @@ -5,7 +5,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: ir-tcl.c,v $ - * Revision 1.108 1998-10-12 11:48:08 adam + * Revision 1.109 1998-10-13 21:23:26 adam + * Fixed searchStatus method. + * + * Revision 1.108 1998/10/12 11:48:08 adam * Removed printf call. * * Revision 1.107 1998/06/10 13:00:46 adam @@ -3771,11 +3774,13 @@ static void ir_searchResponse (void *o, Z_SearchResponse *searchrs, logf (LOG_DEBUG, "Search response, no object!"); return; } - setobj->searchStatus = searchrs->searchStatus ? 1 : 0; + setobj->searchStatus = *searchrs->searchStatus; get_referenceId (&setobj->set_inher.referenceId, searchrs->referenceId); setobj->resultCount = *searchrs->resultCount; if (searchrs->presentStatus) setobj->presentStatus = *searchrs->presentStatus; + else + setobj->presentStatus = Z_RES_NONE; if (searchrs->nextResultSetPosition) setobj->nextResultSetPosition = *searchrs->nextResultSetPosition;