* Europagate, 1995
*
* $Log: zaccess.c,v $
- * Revision 1.2 1995/02/16 15:14:53 quinn
+ * Revision 1.3 1995/02/16 15:20:45 quinn
+ * Added initialization of response from search
+ *
+ * Revision 1.2 1995/02/16 15:14:53 quinn
* Fixed KWAQS-generator
*
* Revision 1.1 1995/02/16 14:47:55 quinn
r.status = SearchResponse_GetSearchStatus(pdu);
r.num = SearchResponse_GetResultCount(pdu);
r.status = SearchResponse_GetResultSetStatus(pdu);
+ r.errcode = -1;
+ *r.errstring = '\0';
if ((record = SearchResponse_GetRecords(pdu)))
{
if (zutil_GetTag(record) == NONSURROGATEDIAGNOSTIC_TAG)
strcpy(r.errstring, s);
FREE(s);
}
- else
- *r.errstring = '\0';
}
- else
- *r.errstring = '\0';
}
else
gw_log(GW_LOG_WARN, ZASS_TYPE, "Got real record in SRCHRESP");