projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More work on present. Some log messages removed.
[idzebra-moved-to-github.git]
/
index
/
zsets.c
diff --git
a/index/zsets.c
b/index/zsets.c
index
223103a
..
2963e4f
100644
(file)
--- a/
index/zsets.c
+++ b/
index/zsets.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zsets.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: zsets.c,v $
- * Revision 1.1 1995-09-05 15:28:40 adam
+ * Revision 1.2 1995-09-06 10:33:04 adam
+ * More work on present. Some log messages removed.
+ *
+ * Revision 1.1 1995/09/05 15:28:40 adam
* More work on search engine.
*
*/
* More work on search engine.
*
*/
@@
-67,7
+70,6
@@
ZServerRecord *resultSetRecordGet (ZServerInfo *zi, const char *name,
rset_open (rset, 0);
while (rset_read (rset, &key))
{
rset_open (rset, 0);
while (rset_read (rset, &key))
{
- logf (LOG_DEBUG, "resultSetRecordGet: %d", key.sysno);
if (key.sysno != psysno)
{
psysno = key.sysno;
if (key.sysno != psysno)
{
psysno = key.sysno;
@@
-77,7
+79,6
@@
ZServerRecord *resultSetRecordGet (ZServerInfo *zi, const char *name,
FILE *inf;
char fname[SYS_IDX_ENTRY_LEN];
FILE *inf;
char fname[SYS_IDX_ENTRY_LEN];
- logf (LOG_DEBUG, "get sysno=%d", psysno);
sr[num_i].buf = NULL;
if (lseek (zi->sys_idx_fd, psysno * SYS_IDX_ENTRY_LEN,
SEEK_SET) == -1)
sr[num_i].buf = NULL;
if (lseek (zi->sys_idx_fd, psysno * SYS_IDX_ENTRY_LEN,
SEEK_SET) == -1)
@@
-118,6
+119,12
@@
ZServerRecord *resultSetRecordGet (ZServerInfo *zi, const char *name,
}
}
rset_close (rset);
}
}
rset_close (rset);
+ while (num_i < num)
+ {
+ sr[num_i].buf = NULL;
+ sr[num_i].size = 0;
+ num_i++;
+ }
return sr;
}
return sr;
}