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
Fix uninit variable (hits_limit)
[idzebra-moved-to-github.git]
/
util
/
snippet.c
diff --git
a/util/snippet.c
b/util/snippet.c
index
9be51e9
..
98f1206
100644
(file)
--- a/
util/snippet.c
+++ b/
util/snippet.c
@@
-1,5
+1,5
@@
/* This file is part of the Zebra server.
/* This file is part of the Zebra server.
- Copyright (C) 1994-2009 Index Data
+ Copyright (C) 1994-2011 Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
@@
-17,6
+17,9
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stddef.h>
#include <string.h>
#include <yaz/nmem.h>
#include <stddef.h>
#include <string.h>
#include <yaz/nmem.h>
@@
-219,11
+222,6
@@
const struct zebra_snippet_word *zebra_snippets_lookup(
for (hit_w = zebra_snippets_constlist(hit); hit_w; hit_w = hit_w->next)
{
const zebra_snippet_word *doc_w;
for (hit_w = zebra_snippets_constlist(hit); hit_w; hit_w = hit_w->next)
{
const zebra_snippet_word *doc_w;
- doc_w = zebra_snippets_constlist(doc);
- if (!doc_w)
- {
- yaz_log(YLOG_WARN, "zebra_snippets_constlist returns 0");
- }
for (doc_w = zebra_snippets_constlist(doc); doc_w; doc_w = doc_w->next)
{
if (doc_w->ord == hit_w->ord && doc_w->seqno == hit_w->seqno
for (doc_w = zebra_snippets_constlist(doc); doc_w; doc_w = doc_w->next)
{
if (doc_w->ord == hit_w->ord && doc_w->seqno == hit_w->seqno