projects
/
egate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2f21d29
)
Added initialization of response from search
author
Sebastian Hammer
<quinn@indexdata.com>
Thu, 16 Feb 1995 15:20:45 +0000
(15:20 +0000)
committer
Sebastian Hammer
<quinn@indexdata.com>
Thu, 16 Feb 1995 15:20:45 +0000
(15:20 +0000)
zlayer/zaccess.c
patch
|
blob
|
history
diff --git
a/zlayer/zaccess.c
b/zlayer/zaccess.c
index
e342786
..
374feda
100644
(file)
--- a/
zlayer/zaccess.c
+++ b/
zlayer/zaccess.c
@@
-2,7
+2,10
@@
* Europagate, 1995
*
* $Log: zaccess.c,v $
* 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
* Fixed KWAQS-generator
*
* Revision 1.1 1995/02/16 14:47:55 quinn
@@
-217,6
+220,8
@@
const struct zass_searchent *zass_search(ZASS a, struct ccl_rpn_node *query,
r.status = SearchResponse_GetSearchStatus(pdu);
r.num = SearchResponse_GetResultCount(pdu);
r.status = SearchResponse_GetResultSetStatus(pdu);
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)
if ((record = SearchResponse_GetRecords(pdu)))
{
if (zutil_GetTag(record) == NONSURROGATEDIAGNOSTIC_TAG)
@@
-233,11
+238,7
@@
const struct zass_searchent *zass_search(ZASS a, struct ccl_rpn_node *query,
strcpy(r.errstring, s);
FREE(s);
}
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");
}
else
gw_log(GW_LOG_WARN, ZASS_TYPE, "Got real record in SRCHRESP");