X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=rset%2Frset.c;h=1424692afdbc13224f177cc7d7c4f5fd960d32b3;hb=de31c38f785cafdadae526d27c64005e33238761;hp=ef3696d024ccb0b351c9b4f2baf024aaa4b81ac0;hpb=ecb3935e78cd9bcfdebafdee0834cfb1060d7b5e;p=idzebra-moved-to-github.git diff --git a/rset/rset.c b/rset/rset.c index ef3696d..1424692 100644 --- a/rset/rset.c +++ b/rset/rset.c @@ -1,5 +1,5 @@ -/* $Id: rset.c,v 1.53 2006-05-10 08:13:33 adam Exp $ - Copyright (C) 1995-2005 +/* $Id: rset.c,v 1.55 2006-08-14 10:40:21 adam Exp $ + Copyright (C) 1995-2006 Index Data ApS This file is part of the Zebra server. @@ -15,9 +15,9 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Zebra; see the file LICENSE.zebra. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ #include @@ -175,6 +175,7 @@ RSET rset_create_base(const struct rset_control *sel, rset->hits_limit = 0; rset->hits_round = 1000; rset->keycontrol = kcontrol; + (*kcontrol->inc)(kcontrol); rset->scope = scope; rset->term = term; @@ -243,7 +244,6 @@ RSET rset_dup (RSET rs) (rs->refcount)++; yaz_log(log_level, "rs_dup(%s), rs=%p, refcount=%d", rs->control->desc, rs, rs->refcount); - (*rs->keycontrol->inc)(rs->keycontrol); return rs; }